Skip to content

Commit

Permalink
fixied W0621 and improts
Browse files Browse the repository at this point in the history
  • Loading branch information
epomatti committed May 28, 2022
1 parent e70d486 commit 0348621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions microservices/vote/src/app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from flask import Flask, request
from dotenv import load_dotenv

from src import microservices, repository
from epomatti_aksmrc_core import validators
from src import microservices, repository
from src.schemas import vote_schema


Expand All @@ -21,7 +21,7 @@ def readiness():
@app.route(BASE_PATH, methods=['POST'])
def post():
vote_json = request.get_json()
repository.vote(vote_json)
repository.add_vote(vote_json)
microservices.increment_pool(vote_json['pool_id'])
return "", 201

Expand Down
2 changes: 1 addition & 1 deletion microservices/vote/src/repository.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from epomatti_aksmrc_core import mongo

def vote(vote):
def add_vote(vote):
return _get_collection().insert_one(vote)


Expand Down

0 comments on commit 0348621

Please sign in to comment.