diff --git a/parsers/caves.py b/parsers/caves.py index fbe9788..8a611ec 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -73,9 +73,9 @@ def set_dummy_entrance(id, slug, cave, msg="DUMMY"): Entrance field either missing or holds a null string instead of a filename in a cave_data file.""" global entrances_xslug try: - entrance = dummy_entrance(id, slug, msg="DUMMY") - entrances_xslug[slug] = entrance - #Note the below line, just creates a dastabase entry and not a file, this then breaks entrance editing by the website. I am not sure if we want entrances automagically created. Therefore I have commented it out. MJG + #Note the below line, just creates a dastabase entry, sets the global variable entrances_xslug and not a file, this then breaks entrance editing by the website. I am not sure if we want entrances automagically created. Therefore I have commented it out. Perhaps entrances_xslug is being saved with the worng filename, breaking edit_caves. MJG + #entrance = dummy_entrance(id, slug, msg="DUMMY") + #entrances_xslug[slug] = entrance #CaveAndEntrance.objects.update_or_create(cave=cave, entrance_letter="", entrance=entrance) #message = f" - Note: Dummy Entrance successfully set for entrance {id} on cave {cave}" message = f" - Note: Missing Entrance for entrance {id} on cave {cave}"