diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-07-22 11:23:00 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-07-22 11:23:00 +0300 |
commit | 38eb65ac0e9b419acd3e211f3126164430bc521e (patch) | |
tree | 52740cb713aa95354895efb90e0036134003c364 /parsers/drawings.py | |
parent | 796dbf1438e976d05b80c5c92543560bdb50d1e9 (diff) | |
download | troggle-38eb65ac0e9b419acd3e211f3126164430bc521e.tar.gz troggle-38eb65ac0e9b419acd3e211f3126164430bc521e.tar.bz2 troggle-38eb65ac0e9b419acd3e211f3126164430bc521e.zip |
remove unused code
Diffstat (limited to 'parsers/drawings.py')
-rw-r--r-- | parsers/drawings.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/parsers/drawings.py b/parsers/drawings.py index a6c16be..88a6ca3 100644 --- a/parsers/drawings.py +++ b/parsers/drawings.py @@ -21,18 +21,6 @@ for tunnel and therion files todo=''' ''' -def get_or_create_placeholder(year): - """ All surveys must be related to a logbookentry. We don't have a way to - automatically figure out which survey went with which logbookentry, - so we create a survey placeholder logbook entry for each year. This - function always returns such a placeholder, and creates it if it doesn't - exist yet. - """ - lookupAttribs={'date__year':int(year), 'title':"placeholder for surveys",} - nonLookupAttribs={'text':"surveys temporarily attached to this should be re-attached to their actual trips", 'date':datetime.date(int(year),1,1)} - placeholder_logbook_entry, newly_created = save_carefully(LogbookEntry, lookupAttribs, nonLookupAttribs) - return placeholder_logbook_entry - def find_dwg_file(dwgfile, path): '''Is given a line of text 'path' which may or may not contain a recognisable name of a scanned file which we have already seen when we imported all the files we could find in the surveyscans direstories |