📝 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
|
## Usage
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from voting.voting import Quorum, QuorumKind, Vote, Voting, Result
|
from voting import Quorum, QuorumKind, Vote, Voting, Result
|
||||||
|
|
||||||
# initializing a new voting
|
# initializing a new voting
|
||||||
voting = Voting(
|
voting = Voting(
|
||||||
|
@ -31,8 +31,10 @@ voting.vote('alice', Vote.NO)
|
||||||
voting.vote('alice', Vote.YES)
|
voting.vote('alice', Vote.YES)
|
||||||
|
|
||||||
# obtaining the result
|
# obtaining the result
|
||||||
res = Result(voting)
|
res = Result(voting).result()
|
||||||
print(res.result())
|
|
||||||
|
# printing the result
|
||||||
|
print(Result(voting))
|
||||||
```
|
```
|
||||||
|
|
||||||
## Command-line Interface
|
## Command-line Interface
|
||||||
|
|
Loading…
Reference in a new issue