morelists 0.1.3__py3-none-any.whl → 0.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- morelists/__init__.py +3 -0
- {morelists-0.1.3.dist-info → morelists-0.1.5.dist-info}/METADATA +1 -1
- morelists-0.1.5.dist-info/RECORD +6 -0
- morelists-0.1.3.dist-info/RECORD +0 -6
- {morelists-0.1.3.dist-info → morelists-0.1.5.dist-info}/WHEEL +0 -0
- {morelists-0.1.3.dist-info → morelists-0.1.5.dist-info}/licenses/LICENSE +0 -0
- {morelists-0.1.3.dist-info → morelists-0.1.5.dist-info}/top_level.txt +0 -0
morelists/__init__.py
CHANGED
@@ -156,6 +156,8 @@ class GameList():
|
|
156
156
|
|
157
157
|
# update() ignore the reeze flag because it's assumed the user is calling it with the purpose of updating it manually
|
158
158
|
try:
|
159
|
+
if len(self.expirationList.keys()) == 0:
|
160
|
+
return
|
159
161
|
expiration = min(self.expirationList.keys())
|
160
162
|
while expiration < time.time():
|
161
163
|
if self.list[expiration]["type"] == "add":
|
@@ -169,6 +171,7 @@ class GameList():
|
|
169
171
|
|
170
172
|
del self.flippedList[json.dumps(self.list[expiration], sort_keys=True)]
|
171
173
|
del self.list[expiration]
|
174
|
+
del self.expirationList[expiration]
|
172
175
|
|
173
176
|
object.__getattribute__(self, "history").append((expiration, self.list, self.expirationList, self.flippedList, self.safeSum()))
|
174
177
|
expiration = min(self.expirationList.keys())
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: morelists
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.5
|
4
4
|
Summary: A small and easy list you can add together like a math equation and has a expiration date for items. Mostly useful for games with stats from multiple sources. More lists will come soon.
|
5
5
|
Home-page: https://github.com/EmanuelNorsk/enlist
|
6
6
|
Author: Emanuel Odén Hesselroth
|
@@ -0,0 +1,6 @@
|
|
1
|
+
morelists/__init__.py,sha256=8cQ05qmXnIZry3FEjZBb25oMys2j8cppzZcBDVSt6vU,17194
|
2
|
+
morelists-0.1.5.dist-info/licenses/LICENSE,sha256=-ASFHlrne1rk8zV57Qj01X2JB-D67ZHPMv1PtQhrbN8,32
|
3
|
+
morelists-0.1.5.dist-info/METADATA,sha256=k2gE6ZPEKVLTGh4tTu4xXQtKFilU6e8F5EHD6wHWT-o,681
|
4
|
+
morelists-0.1.5.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
5
|
+
morelists-0.1.5.dist-info/top_level.txt,sha256=Zd7NosYzor-RcH_aD86FXJa3fQzWunYA4_FQS3Yodqo,10
|
6
|
+
morelists-0.1.5.dist-info/RECORD,,
|
morelists-0.1.3.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
morelists/__init__.py,sha256=nnk03JRnoaIVtFaqlPhIZFiyLzW2fdKBkA1gAJsBjv8,17063
|
2
|
-
morelists-0.1.3.dist-info/licenses/LICENSE,sha256=-ASFHlrne1rk8zV57Qj01X2JB-D67ZHPMv1PtQhrbN8,32
|
3
|
-
morelists-0.1.3.dist-info/METADATA,sha256=AC3NZ-WtGgffMMiY7sk9ER9pxh8CVUGVq-Uj36yxgPA,681
|
4
|
-
morelists-0.1.3.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
5
|
-
morelists-0.1.3.dist-info/top_level.txt,sha256=Zd7NosYzor-RcH_aD86FXJa3fQzWunYA4_FQS3Yodqo,10
|
6
|
-
morelists-0.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|