Skip to content

Commit

Permalink
Fixing issue 3 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrechka authored Nov 8, 2022
1 parent 515c6a4 commit e511ff4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ async def work():
# creating a trello card
url = "https://api.trello.com/1/cards"

pos = max(1, (1.0 - topSimilarity)*1e7)

query = {
'key': trelloKey,
'token': trelloToken,
'idList': trelloIdList,
'pos': (1.0 - topSimilarity)*1e7,
'pos': pos,
'name': f"{namespace}/{local_id}:{topSimilarity:.3f}",
'desc': f"Доступны возможные совпадения\nCosSim (CZHTTE): {topSimilarity}",
'idMembers' : [trelloAppMemberId]
Expand Down

0 comments on commit e511ff4

Please sign in to comment.