📝 Small fixes.:wq
gi
This commit is contained in:
parent
4ebcb09be7
commit
0f43292863
1 changed files with 5 additions and 3 deletions
|
@ -13,7 +13,7 @@ poetry install
|
|||
## Usage
|
||||
|
||||
```python
|
||||
from voting.voting import Quorum, QuorumKind, Vote, Voting, Result
|
||||
from voting import Quorum, QuorumKind, Vote, Voting, Result
|
||||
|
||||
# initializing a new voting
|
||||
voting = Voting(
|
||||
|
@ -31,8 +31,10 @@ voting.vote('alice', Vote.NO)
|
|||
voting.vote('alice', Vote.YES)
|
||||
|
||||
# obtaining the result
|
||||
res = Result(voting)
|
||||
print(res.result())
|
||||
res = Result(voting).result()
|
||||
|
||||
# printing the result
|
||||
print(Result(voting))
|
||||
```
|
||||
|
||||
## Command-line Interface
|
||||
|
|
Loading…
Reference in a new issue