Skip to content

Commit

Permalink
Merge pull request #18 from thiippal/toloka-kit_1.0
Browse files Browse the repository at this point in the history
Update toloka-kit to 1.0
  • Loading branch information
thiippal authored Sep 21, 2022
2 parents df70880 + 83c0e70 commit 67a14f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "abulafia"
version = "0.1.2"
version = "0.1.3"
description = "A tool for fair and reproducible crowdsourcing using Toloka"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -16,6 +16,6 @@ dependencies = [
"crowd_kit>=1.0.0",
"pytest",
"PyYAML>=6.0",
"toloka_kit>=0.1.26",
"toloka_kit[pandas]>=1.0.0",
"wasabi>=0.9.0"
]
]
4 changes: 2 additions & 2 deletions src/abulafia/observers/observers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from wasabi import Printer
from toloka.streaming.observer import BaseObserver
from toloka.client.analytics_request import UniqueWorkersCountPoolAnalytics, ActiveWorkersByFilterCountPoolAnalytics, \
SubmitedAssignmentsCountPoolAnalytics
SubmittedAssignmentsCountPoolAnalytics
from toloka.client.operations import Operation
from toloka.client.exceptions import DoesNotExistApiError

Expand Down Expand Up @@ -108,7 +108,7 @@ async def create_operation(self):
stat_requests = [
UniqueWorkersCountPoolAnalytics(subject_id=self.pool.id),
ActiveWorkersByFilterCountPoolAnalytics(subject_id=self.pool.id, interval_hours=1),
SubmitedAssignmentsCountPoolAnalytics(subject_id=self.pool.id)
SubmittedAssignmentsCountPoolAnalytics(subject_id=self.pool.id)
]

# Get the analytics and return
Expand Down

0 comments on commit 67a14f6

Please sign in to comment.