Skip to content

Commit

Permalink
remove debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Sander committed Aug 7, 2017
1 parent 8ca223e commit af52202
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions gengine/app/leaderboard.py
Expand Up @@ -96,8 +96,8 @@ def forward(cls, subjecttype_id, context_subject_id, from_date, to_date, whole_t
# We are comparing all subjects of type subject_type which have been part of context_subject_id between from_date and to_date
# By default, they don't have to be member all the time (whole_time_required).

print("Looking for descendents of %s of type %s" % (context_subject_id, subjecttype_id))
print("From Date: %s, To Date: %s, whole_time_required: %s" % (from_date, to_date, whole_time_required))
#print("Looking for descendents of %s of type %s" % (context_subject_id, subjecttype_id))
#print("From Date: %s, To Date: %s, whole_time_required: %s" % (from_date, to_date, whole_time_required))

ancestor_subjects = Subject.get_descendent_subjects(
subject_id=context_subject_id,
Expand Down
12 changes: 6 additions & 6 deletions gengine/app/model.py
Expand Up @@ -906,8 +906,8 @@ def full_output(cls, subject_id):
@classmethod
def get_ancestor_subjects(cls, subject_id, of_type_id, from_date, to_date, whole_time_required):

print("Getting ancestors of %s of type %s" % (subject_id, of_type_id))
print("From date %s, To date %s, whole_time_required: %s" % (from_date, to_date, whole_time_required))
#print("Getting ancestors of %s of type %s" % (subject_id, of_type_id))
#print("From date %s, To date %s, whole_time_required: %s" % (from_date, to_date, whole_time_required))

if whole_time_required:
datestr = "(%(ss)s.joined_at<=:from_date AND (%(ss)s.left_at IS NULL OR %(ss)s.left_at >= :to_date))"
Expand Down Expand Up @@ -1431,8 +1431,8 @@ def evaluate(cls, compared_subject, achievement_id, achievement_date, context_su
"""
def generate():
achievement = Achievement.get_achievement(achievement_id)
print("Generating for %s, generate_output=%s, comparison_type=%s" %(achievement["name"], generate_output, achievement["comparison_type"]))
print("Context Subject ID: %s" % (context_subject_id, ))
#print("Generating for %s, generate_output=%s, comparison_type=%s" %(achievement["name"], generate_output, achievement["comparison_type"]))
#print("Context Subject ID: %s" % (context_subject_id, ))

goal = None

Expand Down Expand Up @@ -1531,7 +1531,7 @@ def generate():
to_date=achievement_date.to_date if achievement_date else None
)

print("relevant subjects:"+",".join(str(s) for s in subject_ids))
#print("relevant subjects:"+",".join(str(s) for s in subject_ids))

leaderboard = Achievement.get_leaderboard(
achievement=achievement,
Expand Down Expand Up @@ -2220,7 +2220,7 @@ def insert_trigger_step_executions_after_step_upsert(mapper,connection,target):
context_subject_ids.append(None)

for context_subject_id in context_subject_ids:
print("eval "+str(achievement["id"])+" - "+str(achievement_date.from_date if achievement_date else "None")+" - "+str(context_subject_id))
#print("eval "+str(achievement["id"])+" - "+str(achievement_date.from_date if achievement_date else "None")+" - "+str(context_subject_id))
goal_eval = Achievement.evaluate(
compared_subject=subject,
achievement_id=achievement["id"],
Expand Down

0 comments on commit af52202

Please sign in to comment.