File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,19 @@ def insert_events(event_list):
9999 "Outcome.Foster" : 2 ,
100100 "Outcome.ReturnToOwner" : 3 ,
101101 "Intake.AdoptionReturn" : 4 ,
102+ "Intake.FosterReturn" :5
102103 }
103104
105+ # """ INSERT INTO "sl_event_types" ("id","event_name") VALUES
106+ # ( 1,'Outcome.Adoption' ),
107+ # ( 2,'Outcome.Foster' ),
108+ # ( 3,'Outcome.ReturnToOwner' ),
109+ # ( 4,'Intake.AdoptionReturn' ),
110+ # ( 5,'Intake.FosterReturn' ) """
111+
112+
113+
114+
104115 # Event record: [ AssociatedRecords[Type = Person]["Id"]',
105116 # AssociatedRecords[Type = Animal]["Id"]',
106117 # "Type",
Original file line number Diff line number Diff line change 1313 "Outcome.Foster" ,
1414 "Outcome.ReturnToOwner" ,
1515 "Intake.AdoptionReturn" ,
16+ "Intake.FosterReturn"
1617]
1718
1819# from config import engine
@@ -94,6 +95,7 @@ def get_event_count():
9495 if decoded ["success" ]:
9596 return decoded ["total_count" ]
9697 else :
98+ logger (decoded ['error_message' ])
9799 return - 5 # AFAICT, this means URL was bad
98100
99101
Original file line number Diff line number Diff line change 1+ numpy == 1.19.5
12Flask == 1.1.2
23pandas == 1.3.2
3- numpy == 1.18.1
4+
45sqlalchemy == 1.4.15
5- psycopg2-binary == 2.8.4
6+ psycopg2-binary == 2.9.1
67xlrd == 1.2.0 # currently used for xlsx, but we should consider adjusting code to openpyxl for xlsx
78openpyxl
89requests
You can’t perform that action at this time.
0 commit comments