Skip to content
Snippets Groups Projects
Commit 66a0f9a3 authored by Brian Moe's avatar Brian Moe
Browse files

Removed references to debug output file /tmp/foo

parent 0d13036a
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ from datetime import datetime, timedelta ...@@ -12,7 +12,7 @@ from datetime import datetime, timedelta
from subprocess import Popen, PIPE, STDOUT from subprocess import Popen, PIPE, STDOUT
DEST_DIR = "/tmp/foo" DEST_DIR = "/var/www/html/histo"
def analysisTypes(): def analysisTypes():
...@@ -38,11 +38,11 @@ class Command(NoArgsCommand): ...@@ -38,11 +38,11 @@ class Command(NoArgsCommand):
start_week = now - timedelta(7) start_week = now - timedelta(7)
start_month = now - timedelta(30) start_month = now - timedelta(30)
PAST = 91 # PAST = 91
now -= timedelta(PAST) # now -= timedelta(PAST)
start_day -= timedelta(PAST) # start_day -= timedelta(PAST)
start_week -= timedelta(PAST) # start_week -= timedelta(PAST)
start_month -= timedelta(PAST) # start_month -= timedelta(PAST)
time_ranges = [(start_day, "day"), (start_week, "week"), (start_month, "month")] time_ranges = [(start_day, "day"), (start_week, "week"), (start_month, "month")]
......
...@@ -43,12 +43,6 @@ def insert_ligolw_tables(xml_filename): ...@@ -43,12 +43,6 @@ def insert_ligolw_tables(xml_filename):
out += p.stdout.read() out += p.stdout.read()
if out.find("OK") != 0: if out.find("OK") != 0:
coinc_id = None coinc_id = None
try:
f = open('/tmp/foo','a')
f.write("ERROR (stdin): %s\n" % out)
f.write("ERROR (stderr): %s\n" % err)
f.close()
except: pass
else: else:
coinc_id = out[2:].strip() coinc_id = out[2:].strip()
return coinc_id return coinc_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment