fix(typo): Let's try executing bound method instead

This commit is contained in:
Gavin D'souza 2021-05-26 19:49:22 +05:30
parent 295d44cee5
commit 88ef41bc58
2 changed files with 2 additions and 1 deletions

View file

@ -100,4 +100,5 @@ def get_apps():
if __name__ == "__main__":
if not frappe._dev_server:
warnings.simplefilter('ignore')
warnings.simplefilter('always')
main()

View file

@ -26,7 +26,7 @@ def get_context(context):
"lastmod": nowdate()
})
for route, data in get_public_pages_from_doctypes().items:
for route, data in get_public_pages_from_doctypes().items():
links.append({
"loc": get_url(quote((route or "").encode("utf-8"))),
"lastmod": get_datetime(data.get("modified")).strftime("%Y-%m-%d")