-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
activity/scraper: Fix reqs and indexing issues #34
Conversation
ack e683dc8 |
@@ -2,3 +2,4 @@ django<2.0 | |||
django-distill | |||
IGitt | |||
requests | |||
python-dateutil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? The repo requirements.txt doesn't contain it.
Edit: This is the same PR, I have just modified it to include the other changes.
activity/scraper.py
Outdated
@@ -108,20 +108,23 @@ def get_data(self): | |||
mon = self.__diff_month(dt) | |||
if mon < self.CONSTANTS['month_count']: | |||
mon = self.CONSTANTS['month_count'] - mon | |||
mon = self.CONSTANTS['month_count'] - mon - 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inplace of L110 111
mon = 0.5 * self.CONSTANTS['month_count'] - 1
should do the job ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, sourcetree messed up the staging I think. Fixing.(the -1 is in the same line)
Fixes previous commit by adding dateutil to requirements.txt and fixing indexing errors for weeks and months. Related to #27
ack 1a8289e |
Fixes previous commit.
Related to #27