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: Improve level 74 solution #1308

Merged
merged 3 commits into from
Feb 25, 2022
Merged

fix: Improve level 74 solution #1308

merged 3 commits into from
Feb 25, 2022

Conversation

faucomte97
Copy link
Contributor

@faucomte97 faucomte97 commented Feb 23, 2022

This change is Reviewable

@faucomte97 faucomte97 self-assigned this Feb 23, 2022
Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @faucomte97)


game/migrations/0074_level_74_solution.py, line 8 at r1 (raw file):

    Level = apps.get_model("game", "Level")
    level74 = Level.objects.get(name="74", default=1)
    level74.model_solution = "[14]"

Not sure what this is, but I believe you 😄


game/migrations/0074_level_74_solution.py, line 21 at r1 (raw file):

class Migration(migrations.Migration):
    dependencies = [("game", "0073_level_75_solution")]
    operations = [migrations.RunPython(update_level, reverse_code=dummy_reverse)]

You can use migrations.RunPython.noop for reverse_code, then you won't need the dummy_reverse method 🙂

Copy link
Contributor Author

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @razvan-pro)


game/migrations/0074_level_74_solution.py, line 21 at r1 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

You can use migrations.RunPython.noop for reverse_code, then you won't need the dummy_reverse method 🙂

Done.

@faucomte97 faucomte97 marked this pull request as ready for review February 25, 2022 10:09
Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @faucomte97)

@faucomte97 faucomte97 enabled auto-merge (squash) February 25, 2022 10:48
@codecov
Copy link

codecov bot commented Feb 25, 2022

Codecov Report

Merging #1308 (83badc5) into master (d3479f2) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1308      +/-   ##
==========================================
- Coverage   91.63%   91.63%   -0.01%     
==========================================
  Files          97       98       +1     
  Lines        5262     5271       +9     
==========================================
+ Hits         4822     4830       +8     
- Misses        440      441       +1     
Impacted Files Coverage Δ
game/views/level_solutions.py 100.00% <ø> (ø)
game/migrations/0074_level_74_solution.py 100.00% <100.00%> (ø)
game/random_road.py 91.00% <0.00%> (-0.36%) ⬇️

@faucomte97 faucomte97 merged commit 14a6155 into master Feb 25, 2022
@faucomte97 faucomte97 deleted the level_74_solution branch August 9, 2022 12:17
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