We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f47cd9 commit 37669ffCopy full SHA for 37669ff
README.md
@@ -27,7 +27,7 @@ This script is purely for the purposes of archival use only.
27
28
```bash
29
# Install the requirements. Once only.
30
-python -m pip install -r requirements.py
+python -m pip install -r requirements.txt
31
python birdwatch.py --url www.twitter.com/<profile>
32
33
# For more help use:
birdwatch.py
@@ -143,9 +143,12 @@ def _func(lst):
143
def window_average(window):
144
def _func(lst):
145
v = lst[:-min(window, len(lst))]
146
+ if len(v) == 0:
147
+ return lst[-1]
148
return sum(v) / len(v)
149
return _func
150
151
+
152
def constant(const):
153
154
return const
0 commit comments