Skip to content

Commit

Permalink
Merge fa956f3 into 4bec193
Browse files Browse the repository at this point in the history
  • Loading branch information
MarJene committed Sep 28, 2022
2 parents 4bec193 + fa956f3 commit 9ec8c3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/genkwh_rights_janitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def get_mongo_rights(member_id, consultation_date=None, start=START_DATE):
'$gte': start,
},
"name": member_id,
"regularization": {
"$exists": False
},
}
if consultation_date:
filters.update({"create_at": {
Expand Down Expand Up @@ -147,7 +150,7 @@ def get_incoherent_rights(member_id):
#cal tenir en compte que si no hi ha diferències entre el dia D i avui, vol dir que tot ok.

if accions:
print("El partner {} ha desquadrat per un total de {} drets (mongo - erp).".format(str(member_id), str(total)))
print("El member {} ha desquadrat per un total de {} drets (mongo - erp).".format(str(member_id), str(total)))
return accions

def insert_actions_mongo(actions_filename):
Expand Down

0 comments on commit 9ec8c3f

Please sign in to comment.