-
Notifications
You must be signed in to change notification settings - Fork 5
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
Moving to Python3 #313
Moving to Python3 #313
Conversation
boxoffice/views/admin_item.py
Outdated
@@ -9,7 +9,7 @@ | |||
from boxoffice.models import db, Organization, ItemCollection, Item, Price | |||
from boxoffice.views.utils import api_error, api_success, json_date_format | |||
from boxoffice.forms import ItemForm, PriceForm |
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.
These imports have to change to ..
boxoffice/views/admin_order.py
Outdated
@@ -4,7 +4,7 @@ | |||
from .. import app, lastuser | |||
from coaster.views import load_models, render_with | |||
from boxoffice.models import ItemCollection, Organization, Order, CURRENCY_SYMBOL, LineItem, LINE_ITEM_STATUS, ORDER_STATUS, INVOICE_STATUS |
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.
Could you correct from boxoffice
imports across all files?
scripts/sync_razorpay_refunds.py
Outdated
@@ -45,7 +45,7 @@ def sync_refunds(): | |||
correspongding_rp_refund = min(possible_rp_refunds, | |||
key=lambda rp_refund: abs(rp_refund['created_at'] - refund_epoch_dt)) | |||
if not correspongding_rp_refund or amount_in_paise(refund.amount) != correspongding_rp_refund['amount']: | |||
raise("Oops! No refund found for {refundid}.".format(refundid=refund.id)) | |||
raise "Oops! No refund found for {refundid}." |
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.
The format parameter is missing.
@@ -12,7 +12,6 @@ install: | |||
- pip install -U pip wheel | |||
- pip install -r test_requirements.txt | |||
- pip install -r requirements.txt | |||
- pip install https://github.com/hasgeek/coaster/archive/master.zip |
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.
Doesn't this work if it's in requirements.txt
?
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.
It should. I'm not sure why it was added here.
Related to hasgeek/hgapp#39