scripts: remove manual reconcialiation, it doesn't get much

This commit is contained in:
Benjamin Dauvergne 2013-01-07 09:29:26 +01:00
parent 59e0f80931
commit cffaaad0be
1 changed files with 0 additions and 14 deletions

View File

@ -522,20 +522,6 @@ def main():
i += 1
if row['parent_event']:
j += 1
else:
t = row['time']
if t:
query = 'EXTRACT(hour from start_datetime) = %i and EXTRACT(minute from start_datetime) = %i' % (t.hour, t.minute)
qs = EventWithAct.objects.for_today(row['date']).filter(patient=row['enfant']).extra(where=[query])
if qs:
try:
row['parent_event'] = qs.get()
except:
print qs
import pdb
pdb.set_trace()
k += 1
act = Act.objects.create(
date=row['date'],
time=row['time'],