no outputfilename and outputfolder needed anymore
This commit is contained in:
@@ -63,13 +63,6 @@ for arg in cgi_args:
|
||||
if DEBUG: print("Parsed argument dict: ", parsed_args)
|
||||
args.update(cgi_args)
|
||||
|
||||
# generate output file name from query
|
||||
# outputfolder/date-randomnumber.gpx
|
||||
if not os.path.isdir(outputfolder):
|
||||
os.makedirs(outputfolder)
|
||||
outputfilename = f"{outputfolder}/{str(datetime.date.today())}-{str(random.random()).replace('0.', '')}.gpx"
|
||||
args["outputfilename"] = outputfilename
|
||||
|
||||
searchresult = osmsearch.OSMSearch(args)
|
||||
gpxcontent = searchresult.gpxfile.to_xml()
|
||||
gpxcontent_base64 = base64.b64encode(gpxcontent.encode("utf-8")).decode("utf-8")
|
||||
|
||||
Reference in New Issue
Block a user