Skip to content

Commit 3eaecb5

Browse files
committed
add companyLogo and companyName attributes to job data in firebase to resolve troublesome refresh cycle bug
1 parent 2138f3d commit 3eaecb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/uploader.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ def update_or_create_job(obj):
216216

217217
# Clean up the values
218218
obj['company'] = company_ref
219+
obj['companyName'] = company['name']
220+
obj['companyLogo'] = company['logo']
219221

220222
if _key is None:
221223
# we are creating
@@ -274,8 +276,8 @@ def process_jobs_csv():
274276
if __name__ == '__main__':
275277
print('--------------------')
276278
print('JobMatcher Uploader')
277-
print('\tEnsure there is a student.csv and '
278-
'recruiter.csv file in the same dir')
279+
print('\tEnsure there is a student.csv, jobs.csv, '
280+
'company.csv and recruiter.csv file in the same dir')
279281

280282
process_student_csv()
281283

0 commit comments

Comments
 (0)