Skip to content

Commit

Permalink
Install vtjson on server setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbergh authored and ppigazzini committed Dec 3, 2023
1 parent aa4291f commit 4306702
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 651 deletions.
2 changes: 1 addition & 1 deletion server/fishtest/actiondb.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import datetime, timezone

from fishtest.util import hex_print, worker_name
from fishtest.vtjson import _validate, union
from pymongo import DESCENDING
from vtjson import _validate, union

schema = union(
{
Expand Down
2 changes: 1 addition & 1 deletion server/fishtest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from fishtest.stats.stat_util import SPRT_elo
from fishtest.util import worker_name
from fishtest.vtjson import _validate, lax, union
from pyramid.httpexceptions import (
HTTPBadRequest,
HTTPFound,
Expand All @@ -15,6 +14,7 @@
)
from pyramid.response import Response
from pyramid.view import exception_view_config, view_config, view_defaults
from vtjson import _validate, lax, union

"""
Important note
Expand Down
2 changes: 1 addition & 1 deletion server/fishtest/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
update_residuals,
worker_name,
)
from fishtest.vtjson import _validate, ip_address, number, regex, union, url
from fishtest.workerdb import WorkerDb
from pymongo import DESCENDING, MongoClient
from vtjson import _validate, ip_address, number, regex, union, url

DEBUG = False

Expand Down
2 changes: 1 addition & 1 deletion server/fishtest/userdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from datetime import datetime, timezone

from bson.objectid import ObjectId
from fishtest.vtjson import _validate, email, union, url
from pymongo import ASCENDING
from vtjson import _validate, email, union, url

schema = {
"_id?": ObjectId,
Expand Down
Loading

0 comments on commit 4306702

Please sign in to comment.