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

cleanup stray activities #2697

Merged
merged 2 commits into from
Nov 7, 2018
Merged

cleanup stray activities #2697

merged 2 commits into from
Nov 7, 2018

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Nov 5, 2018

Description

cleans up stray activities

Checklist
  • linter status: 100% pass
  • changes don't break existing behavior
  • commit message follows commit guidelines
Affected core subsystem(s)
Testing

tesxted on my local

Refers/Fixes

https://gitcoincommunity.slack.com/archives/C7A4F4UHK/p1541448206270900?thread_ts=1541427130.245200&cid=C7A4F4UHK

@owocki owocki requested a review from mbeacom November 5, 2018 21:02
if bounty.activities.count():
print(bounty.pk, bounty.activities.count())
for activity in bounty.activities.all():
activity.bounty = Bounty.objects.filter(standard_bounties_id=bounty.standard_bounties_id, network=bounty.network, current_bounty=True).order_by('-pk').first()

Choose a reason for hiding this comment

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

E501 line too long (174 > 120 characters)

@owocki
Copy link
Contributor Author

owocki commented Nov 5, 2018

example output

6900 4
6897 7
6893 2
6878 1
6874 6
6827 4
6806 22
6760 1
6743 4
6737 6
6732 5
6699 11
6662 7
6641 2
6638 1
6617 4
6608 4
6592 1
6579 2
6571 5
6562 5
6542 7
6509 10
6507 17
6490 4
6489 1
6461 3
6459 3
6432 4
6428 4
6416 1
6391 2
6389 24
6387 1
6350 6
6346 4
6343 7
6335 13
6332 4
6323 1
6305 2
6298 1
6295 1
6284 2
6282 1
6279 2
6278 1
6276 14
6252 13
6232 1
6229 6
6221 1
6220 1
6217 2
6209 14
6198 5
6181 1
6174 1
6166 7
6148 1
6144 3
6130 2
6129 5
6097 1
6081 2
6073 1
6071 7
6050 4
6036 1
6030 5
6028 3
5996 3
5991 2
5990 3
5956 5
5944 7
5871 1
5844 4
5834 1
5825 8
5800 2
5790 5
5774 6
5743 8
5727 1
5680 8
5673 1
5660 6
5655 3
5583 21
5483 6
5442 26
5434 1
5415 4
5368 7
5345 2
5302 5
5249 9
5233 4
5224 4
5183 4
5144 7
5139 3
5126 12
5095 7
5060 6
5054 11
4987 1
4818 1
4674 1
4667 1
4639 9
4590 6
4333 4
4131 3
4018 1
3555 1
3554 1
3469 1
3268 2
2968 1
2902 2
2899 1
2896 1
2823 1
2374 2
2351 2
2195 1

@owocki owocki merged commit c4ebf79 into master Nov 7, 2018
@thelostone-mc thelostone-mc deleted the kevin/stray_activities branch December 28, 2018 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants