nsarchive 2.0.0a5__py3-none-any.whl → 2.0.0a6__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/cls/base.py +7 -6
- {nsarchive-2.0.0a5.dist-info → nsarchive-2.0.0a6.dist-info}/METADATA +1 -1
- {nsarchive-2.0.0a5.dist-info → nsarchive-2.0.0a6.dist-info}/RECORD +5 -5
- {nsarchive-2.0.0a5.dist-info → nsarchive-2.0.0a6.dist-info}/LICENSE +0 -0
- {nsarchive-2.0.0a5.dist-info → nsarchive-2.0.0a6.dist-info}/WHEEL +0 -0
nsarchive/cls/base.py
CHANGED
@@ -113,12 +113,13 @@ class Instance:
|
|
113
113
|
|
114
114
|
for key, value in query.items():
|
115
115
|
entity = self._select_from_db(table, key, value)
|
116
|
-
if entity is not None: matches.append(entity[0])
|
117
116
|
|
118
|
-
|
117
|
+
if entity is not None:
|
118
|
+
matches.append(entity)
|
119
119
|
|
120
|
-
|
121
|
-
|
122
|
-
_res.append(item)
|
120
|
+
if not matches or len(matches) != len(query):
|
121
|
+
return []
|
123
122
|
|
124
|
-
|
123
|
+
_res = [ item for item in matches[0] if all(item in match for match in matches[1:]) ]
|
124
|
+
|
125
|
+
return _res
|
@@ -1,7 +1,7 @@
|
|
1
1
|
nsarchive/__init__.py,sha256=_hwIocDyD7R-4rS7ypca8jZex93H6mK-b9NpTpt-Rvo,724
|
2
2
|
nsarchive/assets/default_avatar.png,sha256=n-4vG_WPke8LvbY3ZU6oA-H-OtRoIu7woKnRq9DCIlI,51764
|
3
3
|
nsarchive/cls/archives.py,sha256=HHQhGKdnl7vD5zC8-bbXeQLhp8A98bBlneJTkztOmMg,2007
|
4
|
-
nsarchive/cls/base.py,sha256=
|
4
|
+
nsarchive/cls/base.py,sha256=RWcpUDfo96BjsUR_G49c9mR80qZKGKD82RoZB2do1p8,3606
|
5
5
|
nsarchive/cls/economy.py,sha256=fnzmliHsUBEdu5RrrSkimpcgou_HFnivP_lmzLKCaDI,1360
|
6
6
|
nsarchive/cls/entities.py,sha256=hjqCtsQHQZrLFwR57d_n4FssJ53-jdniQMHUAJGuDPY,6612
|
7
7
|
nsarchive/cls/exceptions.py,sha256=QN6Qn7cxTkGoC4lO50hBAq4gZCgo7scQvCkb-xKl6Xs,692
|
@@ -10,7 +10,7 @@ nsarchive/instances/_economy.py,sha256=PjdqVJspZIuge5oqeJ_7fWrddfogH2yCEu0EgOhJv
|
|
10
10
|
nsarchive/instances/_entities.py,sha256=VckXexRhsZRq4qLZuMWp74sB5gLeuR4sj8yXxijFI94,9814
|
11
11
|
nsarchive/instances/_republic.py,sha256=sIaqz2lhmmjz3Y8l4iwY737JVCVt077OwP0-1dPsEaw,10071
|
12
12
|
nsarchive/utils/assets.py,sha256=WGC03K1VZ5LwGzcVXbqphtGBZ_Vjso-1hmbIkpgL_X8,382
|
13
|
-
nsarchive-2.0.
|
14
|
-
nsarchive-2.0.
|
15
|
-
nsarchive-2.0.
|
16
|
-
nsarchive-2.0.
|
13
|
+
nsarchive-2.0.0a6.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
|
14
|
+
nsarchive-2.0.0a6.dist-info/METADATA,sha256=i4aiTtyC5fc5kr8PD7TOCtAfxJwfATw60Gim-t5xY9k,5697
|
15
|
+
nsarchive-2.0.0a6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
16
|
+
nsarchive-2.0.0a6.dist-info/RECORD,,
|
File without changes
|
File without changes
|