From 7c92ab3aa6d297b1c774827b8bcd8a3548f5a21a Mon Sep 17 00:00:00 2001 From: Oleg Silkin Date: Sun, 19 May 2019 02:25:15 -0400 Subject: [PATCH] Moves database file to server and makes the database into a class --- server.py => server/server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename server.py => server/server.py (98%) diff --git a/server.py b/server/server.py similarity index 98% rename from server.py rename to server/server.py index 979c5f4..95c22f0 100644 --- a/server.py +++ b/server/server.py @@ -1,9 +1,7 @@ -import typing import asyncio from aiohttp import web -import database as db - +import server.database as db ERRORS = { 'INVALID_PARAMS': {'code': -32602, 'message': 'Invalid parameters'},