From dc2f62d300d982fbf98639c80943f4dc3944a63f Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Thu, 16 Jun 2022 14:44:36 +0300 Subject: [PATCH] python versrion upgrade, community type fix --- .gitignore | 1 + .pre-commit-config.yaml | 2 +- Dockerfile | 2 +- InboxDockerfile | 2 +- Pipfile | 2 +- nginx.conf | 2 +- schema.graphql | 2 ++ 7 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6c6dd38c..4c7349e5 100644 --- a/.gitignore +++ b/.gitignore @@ -141,4 +141,5 @@ migration/content/**/*.md *.zip *.sqlite3 +*.rdb .DS_Store \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af489f3a..cbeb640d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ exclude: | ) default_language_version: - python: python3.8 + python: python3.9 repos: - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/Dockerfile b/Dockerfile index 2365f893..6658fbe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8 +FROM python:3.9 EXPOSE 8080 diff --git a/InboxDockerfile b/InboxDockerfile index 678f972b..f03a4f17 100644 --- a/InboxDockerfile +++ b/InboxDockerfile @@ -1,4 +1,4 @@ -FROM python:3.8 +FROM python:3.9 EXPOSE 8081 diff --git a/Pipfile b/Pipfile index 8f16daad..d7d4d565 100644 --- a/Pipfile +++ b/Pipfile @@ -10,7 +10,7 @@ starlette = "*" uvicorn = "*" pydantic = "*" passlib = "*" -PyJWT = "*" +PyJWT = ">=2.4.0" SQLAlchemy = "*" itsdangerous = "*" httpx = ">=0.23.0" diff --git a/nginx.conf b/nginx.conf index fd7e762d..635a17de 100644 --- a/nginx.conf +++ b/nginx.conf @@ -41,7 +41,7 @@ http { } server { - listen 8000; + listen localhost:8000; #server_name localhost; #charset koi8-r; # access_log logs/host.access.log main; diff --git a/schema.graphql b/schema.graphql index 26d232af..225e19c4 100644 --- a/schema.graphql +++ b/schema.graphql @@ -331,6 +331,8 @@ type Community { name: String! desc: String pic: String! + createdAt: DateTime! + createdBy: User! } type TopicStat {