Skip to content

Commit 5367b6e

Browse files
author
bdeck8317
committed
Merge branch '285-rfm-model' of https://github.com/CodeForPhilly/paws-data-pipeline into 285-rfm-model
2 parents c0669a7 + fc0317e commit 5367b6e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/server/api/admin_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -409,4 +409,5 @@ def hit_gdrs():
409409
def hit_create_scores():
410410
current_app.logger.info("Hitting create_scores() ")
411411
tuple_count = create_scores('2021-07-27')
412-
current_app.logger.info("create_scores() processed " + tuple_count + " scores")
412+
current_app.logger.info("create_scores() processed " + str(tuple_count) + " scores")
413+
return jsonify(200)

src/server/rfm_funcs/create_scores.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def create_scores(query_date):
3131
"""
3232
select pc.matching_id, s.amount, s.close_date
3333
from salesforcedonations s
34-
inner join pddp_contacts pc on pc.source_id = s.contact_id and pc.source_type = 'salesforcecontacts'
34+
inner join pdp_contacts pc on pc.source_id = s.contact_id and pc.source_type = 'salesforcecontacts'
3535
where pc.archived_date is null order by matching_id
3636
"""
3737
, connection)

0 commit comments

Comments
 (0)