commit cff7c40e1920c5da004abac9d4c87e0b70d0442d
parent 76636b288dea065f6d5c9325d617f6f25b92bd07
Author: Agastya Chandrakant <me@hanabi.in>
Date: Sun, 17 Jan 2021 01:40:32 +0530
[BUGFIX] DateDPL not working correctly.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dmCat.py b/dmCat.py
@@ -64,7 +64,8 @@ for date in range(1, days + 1):
page = pwb.Page(site, title)
text = page.text
if(text == ''):
- page.text = "{{DateDPL|{0}|{1}|{2}}}".format(date,monthName,year)
+ page.text = u"{{{{DateDPL|{0}|{1}|{2}}}}}".format(date, monthName, year)
page.save(u"Create")
print("Done!")
+