Archived
1
0
Fork 0

Merge pull request #39 from burkemw3/patch-1

Don't write sites in debug mode
This commit is contained in:
Lukas Winkler 2018-11-12 11:54:48 +01:00 committed by GitHub
commit f018d567d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,5 +119,6 @@ async def handle_feed(session, wall, sitetitle, site):
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop, sites))
with open("sites.yaml", 'w') as stream:
yaml.dump(sites, stream, default_flow_style=False)
if "debug" not in config or not config["debug"]:
with open("sites.yaml", 'w') as stream:
yaml.dump(sites, stream, default_flow_style=False)