mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 06:37:09 +00:00
remove unused code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user