-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Create kudos in feed #2576
Create kudos in feed #2576
Conversation
@octavioamu the code LGTM -- did you test!? the linter/build is failing |
@owocki is not finished I will come back to this one today |
Codecov Report
@@ Coverage Diff @@
## master #2576 +/- ##
==========================================
+ Coverage 29.96% 30.73% +0.76%
==========================================
Files 162 162
Lines 13027 13507 +480
Branches 1741 1927 +186
==========================================
+ Hits 3904 4151 +247
- Misses 8999 9243 +244
+ Partials 124 113 -11
Continue to review full report at Codecov.
|
app/kudos/views.py
Outdated
@@ -283,7 +262,13 @@ def send_2(request): | |||
This form is filled out before the 'send' button is clicked. | |||
|
|||
""" | |||
if not request.user.is_authenticated or request.user.is_authenticated and not getattr(request.user, 'profile', None): |
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.
E501 line too long (121 > 120 characters)
4ddaf7b
to
520e75d
Compare
app/kudos/views.py
Outdated
@@ -450,8 +487,8 @@ def receive(request, key, txid, network): | |||
|
|||
""" | |||
these_kudos_transfers = KudosTransfer.objects.filter(web3_type='v3', txid=txid, network=network) | |||
kudos_transfers = these_kudos_transfers.filter(metadata__reference_hash_for_receipient=key) | these_kudos_transfers.filter( | |||
metadata__reference_hash_for_funder=key) | |||
kudos_transfers = these_kudos_transfers.filter(metadata__reference_hash_for_receipient=key) | |
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.
E999 SyntaxError: invalid syntax
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.
Need to fix the syntax error here
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.
tried to fix the E501 line too long
app/kudos/views.py
Outdated
kudos_transfers = these_kudos_transfers.filter(metadata__reference_hash_for_receipient=key) | these_kudos_transfers.filter( | ||
metadata__reference_hash_for_funder=key) | ||
kudos_transfers = these_kudos_transfers.filter(metadata__reference_hash_for_receipient=key) | | ||
these_kudos_transfers.filter(metadata__reference_hash_for_funder=key) |
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.
E113 unexpected indentation
LGTM; @mbeacom ? |
This comment has been minimized.
This comment has been minimized.
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.
Should be good to go once the syntax error is fixed
Thanks @octavioamu
app/kudos/views.py
Outdated
@@ -450,8 +487,8 @@ def receive(request, key, txid, network): | |||
|
|||
""" | |||
these_kudos_transfers = KudosTransfer.objects.filter(web3_type='v3', txid=txid, network=network) | |||
kudos_transfers = these_kudos_transfers.filter(metadata__reference_hash_for_receipient=key) | these_kudos_transfers.filter( | |||
metadata__reference_hash_for_funder=key) | |||
kudos_transfers = these_kudos_transfers.filter(metadata__reference_hash_for_receipient=key) | |
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.
Need to fix the syntax error here
ok let me know when its finished |
9a84d19
to
5561d2c
Compare
YES! figured out how to do it, lol. Ready to merge @owocki |
Description
Checklist
Affected core subsystem(s)
Testing
Refers/Fixes