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

fix: making the created_at dynamic for each order #6721

Merged
merged 2 commits into from Jan 4, 2020

Conversation

kushthedude
Copy link
Member

Fixes #6703

@iamareebjamal
Copy link
Member

That's not gonna work. created_at=None in constructor and in body.

if created_at is None:
    created_at = now()

app/api/orders.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 4, 2020

Codecov Report

Merging #6721 into development will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6721      +/-   ##
===============================================
+ Coverage        65.61%   65.61%   +<.01%     
===============================================
  Files              300      300              
  Lines            15255    15257       +2     
===============================================
+ Hits             10009    10011       +2     
  Misses            5246     5246
Impacted Files Coverage Δ
app/models/order.py 90.19% <100%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2a4c8f...4c8355e. Read the comment docs.

Copy link
Contributor

@codedsun codedsun left a comment

Choose a reason for hiding this comment

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

What's the difference b/w previous and this? @kushthedude
You are still doing the same thing.

@iamareebjamal iamareebjamal changed the title fix: making the createdAt dynamic for each order fix: making the created_at dynamic for each order Jan 4, 2020
@iamareebjamal iamareebjamal merged commit a889564 into fossasia:development Jan 4, 2020
@codedsun
Copy link
Contributor

codedsun commented Jan 4, 2020

@iamareebjamal -

What's the difference in initializing in the constructor and now?
and what's the use of this?
if created_at is None: bcoz in the constructor we specified created_at = None. This condition is always true.

@iamareebjamal
Copy link
Member

Not when created_at is passed in the constructor

@kushthedude
Copy link
Member Author

kushthedude commented Jan 4, 2020 via email

@kushthedude kushthedude deleted the one branch January 22, 2020 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to order ticket
4 participants