Skip to content

Commit

Permalink
Use string for IDs everywhere. --autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Jan 18, 2015
1 parent bd2dd6f commit 7035b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bodyfetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def make_api_call_for_site(self, site):
owner_rep = post["owner"]["reputation"]
except:
owner_rep = 0
q_id = post["question_id"]
q_id = str(post["question_id"])

is_spam, reason = check_if_spam(title, body, owner_name, owner_link, site, q_id, False)
if owner_rep <= 50 and is_spam:
Expand All @@ -79,7 +79,7 @@ def make_api_call_for_site(self, site):
print "got answer from owner with name " + owner_name
link = answer["link"]
owner_link = answer["owner"]["link"]
a_id = answer["answer_id"]
a_id = str(answer["answer_id"])
try:
owner_rep = answer["owner"]["reputation"]
except:
Expand Down

0 comments on commit 7035b45

Please sign in to comment.