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

Feature/gamesreleasedtoday #334

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from

Conversation

Liad-n
Copy link
Contributor

@Liad-n Liad-n commented Feb 24, 2021

Added games released today functionality, currently enabled always, will be added to settings once done

app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
Copy link
Member

@yammesicka yammesicka left a comment

Choose a reason for hiding this comment

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

Great job! I've added insights :)

tests/test_game_releases.py Outdated Show resolved Hide resolved
app/routers/game_release_dates_service.py Outdated Show resolved Hide resolved
app/routers/game_release_dates_service.py Outdated Show resolved Hide resolved
app/routers/game_release_dates_service.py Outdated Show resolved Hide resolved
app/routers/game_release_dates_service.py Outdated Show resolved Hide resolved
Comment on lines 134 to 137
current_user_settings.update(games_setting_true)
session.commit()
else:
create_model(session, UserSettings, **games_setting_true_for_model)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use merge?

Copy link
Contributor Author

@Liad-n Liad-n Feb 26, 2021

Choose a reason for hiding this comment

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

So i did now but I can't really figure it out, it keeps creating new rows(I think it goes by primary key which is just an incremental id.
Didn't find a way to only update it without duplication other than update.
for now changed it back to update.

app/routers/game_release_dates_service.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/internal/game_releases_utils.py Outdated Show resolved Hide resolved
app/routers/game_release_dates_service.py Outdated Show resolved Hide resolved
app/routers/game_release_dates_service.py Outdated Show resolved Hide resolved
return response.text();
})
.then(function (body) {
document.querySelector("#content-div").innerHTML = body;
Copy link
Member

Choose a reason for hiding this comment

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

innerText maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
I'm not sure it would work here, wouldn't I be lacking formatting?

app/static/js/game_releases.js Outdated Show resolved Hide resolved
app/static/js/game_releases.js Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Feb 26, 2021

Codecov Report

Merging #334 (7a0af20) into develop (2199bf9) will decrease coverage by 1.25%.
The diff coverage is 88.47%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #334      +/-   ##
===========================================
- Coverage    95.27%   94.02%   -1.26%     
===========================================
  Files           80       93      +13     
  Lines         3664     4416     +752     
===========================================
+ Hits          3491     4152     +661     
- Misses         173      264      +91     
Impacted Files Coverage Δ
app/internal/on_this_day_events.py 90.62% <0.00%> (ø)
app/internal/user.py 0.00% <0.00%> (ø)
app/routers/audio.py 43.90% <ø> (ø)
app/routers/export.py 82.35% <ø> (ø)
app/dependencies.py 87.50% <60.00%> (-12.50%) ⬇️
app/internal/game_releases_utils.py 80.85% <80.85%> (ø)
app/internal/corona_stats.py 83.33% <83.33%> (ø)
app/routers/settings.py 83.33% <83.33%> (ø)
app/internal/features.py 84.37% <84.37%> (ø)
app/routers/game_release_dates_service.py 85.93% <85.93%> (ø)
... and 35 more

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 fd99fc1...7a0af20. Read the comment docs.

@Liad-n Liad-n requested a review from yammesicka March 30, 2021 00:15
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.

4 participants