Skip to content

Commit

Permalink
change urls
Browse files Browse the repository at this point in the history
  • Loading branch information
bobermilk committed Feb 17, 2023
1 parent 788dec3 commit 125aea0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions constants.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import os

APP_VERSION=4
APP_VERSION=5

api_get_interval=0.1
osu_get_interval=3 # osu site

#oauth url
oauth_url="https://osu.ppy.sh/oauth/authorize?client_id=17410&response_type=code&redirect_uri=https%3A%2F%2Fmilkies.ml%2Fosuauth"
oauth_url="https://osu.ppy.sh/oauth/authorize?client_id=17410&response_type=code&redirect_uri=https%3A%2F%2Fbobermilk.pythonanywhere.com%2Fosuauth"
# scraper.py endpoints
user_url="https://osu.ppy.sh/users/"
#scrape_pinned=user_url+"{}/scores/pinned?mode={}&limit={}&offset={}"
Expand Down Expand Up @@ -43,5 +41,5 @@
link_paypal="https://paypal.me/bobermilk"
link_github="https://github.com/bobermilk/osu-assistant"
link_github_releases="https://github.com/bobermilk/osu-assistant/releases"
link_website="https://milkies.ml/osu-assistant"
link_website="https://bobermilk.pythonanywhere.com/osu-assistant"
link_mappers="https://osu.ppy.sh/home/follows/mapping"
6 changes: 3 additions & 3 deletions misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ async def init():
# Load app data
has_savefile=data.load_data()
# Check for update
if requests.get("https://milkies.ml/json/osu-assistant.json").json()["latest"]>constants.APP_VERSION:
if requests.get("https://bobermilk.pythonanywhere.com/json/osu-assistant.json").json()["latest"]>constants.APP_VERSION:
pub.sendMessage("show.dialog", msg="New update available! Download from github?", ok=lambda: webbrowser.open(constants.link_github_releases))

# Get the jsons
data.TournamentJson=requests.get("https://milkies.ml/json/tournament.json").json()
data.MappackJson=requests.get("https://milkies.ml/json/mappack.json").json()
data.TournamentJson=requests.get("https://bobermilk.pythonanywhere.com/json/tournament.json").json()
data.MappackJson=requests.get("https://bobermilk.pythonanywhere.com/json/mappack.json").json()
return has_savefile

# WARNING: this function WILL hang the main thread, so remember to make it async in production
Expand Down

0 comments on commit 125aea0

Please sign in to comment.