no outputfilename and outputfolder needed anymore

This commit is contained in:
fordprefect
2020-04-20 09:13:59 +02:00
parent 223a2b12b6
commit 1f3be8fd37

View File

@@ -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")