nsarchive 0.1b0__py3-none-any.whl → 0.1b1__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.
- nsarchive/__init__.py +3 -3
- {nsarchive-0.1b0.dist-info → nsarchive-0.1b1.dist-info}/METADATA +3 -1
- {nsarchive-0.1b0.dist-info → nsarchive-0.1b1.dist-info}/RECORD +5 -5
- {nsarchive-0.1b0.dist-info → nsarchive-0.1b1.dist-info}/LICENSE +0 -0
- {nsarchive-0.1b0.dist-info → nsarchive-0.1b1.dist-info}/WHEEL +0 -0
nsarchive/__init__.py
CHANGED
@@ -205,8 +205,8 @@ class RepublicInstance:
|
|
205
205
|
archives = self.mandate if current_mandate else self.archives
|
206
206
|
|
207
207
|
_contributions = archives.fetch({'author': id, 'type': 'contrib'}).items
|
208
|
-
_mandates = archives.fetch({'target': id, 'type': 'election'}).items
|
209
|
-
+ archives.fetch({'target': id, 'type': 'promotion'}).items
|
208
|
+
_mandates = archives.fetch({'target': id, 'type': 'election'}).items\
|
209
|
+
+ archives.fetch({'target': id, 'type': 'promotion'}).items
|
210
210
|
|
211
211
|
user = FunctionalUser(id)
|
212
212
|
for mandate in _mandates:
|
@@ -283,7 +283,7 @@ class RepublicInstance:
|
|
283
283
|
self.functions.put(key = 'MIN_OUT', data = { 'users': [ institutions.government.outer_minister.id ] })
|
284
284
|
|
285
285
|
def new_mandate(self, institutions: Institutions, weeks: int = 4):
|
286
|
-
for item in self.mandate.fetch().items
|
286
|
+
for item in self.mandate.fetch().items:
|
287
287
|
if item['date'] >= round(time.time()) - weeks * 604800:
|
288
288
|
self.mandate.delete(item['id'])
|
289
289
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nsarchive
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.1b1
|
4
4
|
Summary:
|
5
5
|
License: GPL-3.0
|
6
6
|
Author: happex
|
@@ -11,6 +11,8 @@ Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
14
|
+
Requires-Dist: deta (>=1.2,<2.0)
|
15
|
+
Requires-Dist: pillow (>=10.4,<11.0)
|
14
16
|
Description-Content-Type: text/markdown
|
15
17
|
|
16
18
|
# nsarchive
|
@@ -1,4 +1,4 @@
|
|
1
|
-
nsarchive/__init__.py,sha256=
|
1
|
+
nsarchive/__init__.py,sha256=4dflMOP35wJaix4UczrpwvtX7LmTxq2oSbhcG77CjcA,15267
|
2
2
|
nsarchive/assets/default_avatar.png,sha256=n-4vG_WPke8LvbY3ZU6oA-H-OtRoIu7woKnRq9DCIlI,51764
|
3
3
|
nsarchive/cls/archives.py,sha256=5C66pXuXAANRXNDqNTvIepRtUrXIWOL7ymmYiBHsHAY,1720
|
4
4
|
nsarchive/cls/bank.py,sha256=OactEpRn8PGv7BwnBUbMpzgHqrvv4yx526AMzh9uBO8,220
|
@@ -6,7 +6,7 @@ nsarchive/cls/entities.py,sha256=u5u46HzHJp2H_DngLALLgedHaLXlJpjhmxU_Ggozp3Q,347
|
|
6
6
|
nsarchive/cls/exceptions.py,sha256=UZ7G7AFUN5OkKAGpNl1OT7jauF1jC7WW8wWXVFt5sMs,539
|
7
7
|
nsarchive/cls/republic.py,sha256=aY79B5PZF5IErwzEjn9ito6T8gXA4trm6LmIeYu6XLM,1821
|
8
8
|
nsarchive/utils/assets.py,sha256=hd0STSpa0yT-OJlUyI_wCYXJqcBiUMQds2pZTXNNg9c,382
|
9
|
-
nsarchive-0.
|
10
|
-
nsarchive-0.
|
11
|
-
nsarchive-0.
|
12
|
-
nsarchive-0.
|
9
|
+
nsarchive-0.1b1.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
|
10
|
+
nsarchive-0.1b1.dist-info/METADATA,sha256=bEXT-YksUK7018g-8Fop_qGX1Farq_PcnuP7pmqq2nE,5629
|
11
|
+
nsarchive-0.1b1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
nsarchive-0.1b1.dist-info/RECORD,,
|
File without changes
|
File without changes
|