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

Moving to Python3 #313

Merged
merged 7 commits into from
Feb 10, 2020
Merged

Moving to Python3 #313

merged 7 commits into from
Feb 10, 2020

Conversation

iambibhas
Copy link
Contributor

Related to hasgeek/hgapp#39

@iambibhas iambibhas requested a review from jace January 30, 2020 19:11
@@ -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
Copy link
Member

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 ..

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

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?

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

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

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?

Copy link
Contributor Author

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.

@iambibhas iambibhas merged commit 73061e0 into master Feb 10, 2020
@iambibhas iambibhas deleted the py3 branch February 10, 2020 15:12
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.

2 participants