Skip to content
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

Merged
merged 1 commit into from
Dec 9, 2017
Merged

activity/scraper: Fix reqs and indexing issues #34

merged 1 commit into from
Dec 9, 2017

Conversation

nalinbhardwaj
Copy link
Member

Fixes previous commit.

Related to #27

@jayvdb
Copy link
Member

jayvdb commented Dec 9, 2017

ack e683dc8

@nalinbhardwaj nalinbhardwaj changed the title requirements.txt: Add dateutil activity/scraper: Fix reqs and indexing issues Dec 9, 2017
@@ -2,3 +2,4 @@ django<2.0
django-distill
IGitt
requests
python-dateutil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is already merged

Copy link
Member Author

@nalinbhardwaj nalinbhardwaj Dec 9, 2017

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.

@@ -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
Copy link
Member

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 ?

Copy link
Member Author

@nalinbhardwaj nalinbhardwaj Dec 9, 2017

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
@jayvdb
Copy link
Member

jayvdb commented Dec 9, 2017

ack 1a8289e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants