upgrade to ubuntu 22.04

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-07 07:51:05 +02:00
parent 4760aed187
commit 057dfc7d80
5 changed files with 5 additions and 9 deletions

View File

@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
analyze:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout repository

View File

@ -1,8 +1,8 @@
FROM ubuntu:20.04
FROM ubuntu:22.04
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

View File

@ -20,12 +20,9 @@ import requests
from shutil import copyfile
from json import loads
from collections import Counter
from enchant import Dict
import gevent
import os
d = Dict("en_US")
WORDLE_COLOR_MAPPINGS = {-1: "🟥", 0: "🟨", 1: "🟩"}
@app.get("/comment/<cid>")
@ -1017,7 +1014,7 @@ def handle_wordle_action(cid, v):
try: guess = request.values.get("thing").strip().lower()
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
if status == "active":

View File

@ -26,7 +26,6 @@ tldextract
user-agents
psycopg2-binary
pusher_push_notifications
pyenchant
pytest
youtube-dl
yattag

View File

@ -4,7 +4,7 @@
# reboot
apt -y update
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
cd /rDrama