upgrade to ubuntu 22.04
parent
4760aed187
commit
057dfc7d80
|
@ -4,7 +4,7 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt update && apt -y upgrade && apt install -y supervisor python3-pip libenchant1c2a ffmpeg postgresql libpq-dev
|
RUN apt update && apt -y upgrade && apt install -y supervisor python3-pip ffmpeg postgresql libpq-dev
|
||||||
|
|
||||||
COPY supervisord.conf /etc/supervisord.conf
|
COPY supervisord.conf /etc/supervisord.conf
|
||||||
|
|
||||||
|
|
|
@ -20,12 +20,9 @@ import requests
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
from json import loads
|
from json import loads
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
from enchant import Dict
|
|
||||||
import gevent
|
import gevent
|
||||||
import os
|
import os
|
||||||
|
|
||||||
d = Dict("en_US")
|
|
||||||
|
|
||||||
WORDLE_COLOR_MAPPINGS = {-1: "🟥", 0: "🟨", 1: "🟩"}
|
WORDLE_COLOR_MAPPINGS = {-1: "🟥", 0: "🟨", 1: "🟩"}
|
||||||
|
|
||||||
@app.get("/comment/<cid>")
|
@app.get("/comment/<cid>")
|
||||||
|
@ -1017,7 +1014,7 @@ def handle_wordle_action(cid, v):
|
||||||
try: guess = request.values.get("thing").strip().lower()
|
try: guess = request.values.get("thing").strip().lower()
|
||||||
except: abort(400)
|
except: abort(400)
|
||||||
|
|
||||||
if len(guess) != 5 or not d.check(guess) and guess not in WORDLE_LIST:
|
if len(guess) != 5:
|
||||||
return {"error": "Not a valid guess!"}, 400
|
return {"error": "Not a valid guess!"}, 400
|
||||||
|
|
||||||
if status == "active":
|
if status == "active":
|
||||||
|
|
|
@ -26,7 +26,6 @@ tldextract
|
||||||
user-agents
|
user-agents
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
pusher_push_notifications
|
pusher_push_notifications
|
||||||
pyenchant
|
|
||||||
pytest
|
pytest
|
||||||
youtube-dl
|
youtube-dl
|
||||||
yattag
|
yattag
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# reboot
|
# reboot
|
||||||
apt -y update
|
apt -y update
|
||||||
apt -y upgrade
|
apt -y upgrade
|
||||||
apt -y install git redis-server python3-pip libenchant1c2a ffmpeg tmux nginx snapd ufw gpg-agent htop
|
apt -y install git redis-server python3-pip ffmpeg tmux nginx snapd ufw gpg-agent htop
|
||||||
|
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
cd /rDrama
|
cd /rDrama
|
||||||
|
|
Loading…
Reference in New Issue