Qwael 4.0.0.1.2__py3-none-any.whl → 4.0.0.1.3__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.
- Qwael/Multidata.py +9 -6
- {qwael-4.0.0.1.2.dist-info → qwael-4.0.0.1.3.dist-info}/METADATA +1 -1
- {qwael-4.0.0.1.2.dist-info → qwael-4.0.0.1.3.dist-info}/RECORD +6 -6
- {qwael-4.0.0.1.2.dist-info → qwael-4.0.0.1.3.dist-info}/WHEEL +0 -0
- {qwael-4.0.0.1.2.dist-info → qwael-4.0.0.1.3.dist-info}/licenses/LICENSE +0 -0
- {qwael-4.0.0.1.2.dist-info → qwael-4.0.0.1.3.dist-info}/top_level.txt +0 -0
Qwael/Multidata.py
CHANGED
|
@@ -224,21 +224,26 @@ class Admin:
|
|
|
224
224
|
def ID_Control(self, table, **kwargs):
|
|
225
225
|
external_control = None
|
|
226
226
|
|
|
227
|
-
# Control dışarıdan gelmişse al
|
|
228
227
|
if "Control" in kwargs:
|
|
229
228
|
external_control = kwargs["Control"]
|
|
230
229
|
kwargs.pop("Control")
|
|
231
230
|
|
|
231
|
+
# Dict verilmişse hata verelim
|
|
232
|
+
for key, value in kwargs.items():
|
|
233
|
+
if isinstance(value, dict):
|
|
234
|
+
print(f"ID_Control Error: '{key}' bir dict olamaz, direkt değer verin!")
|
|
235
|
+
if external_control is not None:
|
|
236
|
+
external_control.append(False)
|
|
237
|
+
return None
|
|
238
|
+
|
|
232
239
|
filters = kwargs
|
|
233
240
|
|
|
234
|
-
# Filtre yoksa
|
|
235
241
|
if not filters:
|
|
236
242
|
print("ID_Control Error: name gibi filtre gerekli.")
|
|
237
243
|
if external_control is not None:
|
|
238
244
|
external_control.append(False)
|
|
239
245
|
return None
|
|
240
246
|
|
|
241
|
-
# SQL hazırla
|
|
242
247
|
where_clause = " AND ".join([f"{k}=%s" for k in filters])
|
|
243
248
|
sql = f"SELECT ID FROM {table} WHERE {where_clause} LIMIT 1"
|
|
244
249
|
|
|
@@ -246,19 +251,17 @@ class Admin:
|
|
|
246
251
|
self.cursor.execute(sql, tuple(filters.values()))
|
|
247
252
|
row = self.cursor.fetchone()
|
|
248
253
|
|
|
249
|
-
# Veri yoksa
|
|
250
254
|
if not row:
|
|
251
255
|
print("ID_Control: Veri yok.")
|
|
252
256
|
if external_control is not None:
|
|
253
257
|
external_control.append(False)
|
|
254
258
|
return None
|
|
255
259
|
|
|
256
|
-
# Veri bulundu
|
|
257
260
|
if external_control is not None:
|
|
258
261
|
external_control.append(True)
|
|
259
262
|
|
|
260
263
|
print("ID_Control: ID bulundu:", row["ID"])
|
|
261
|
-
return row["ID"]
|
|
264
|
+
return row["ID"] # 🔥 Sadece ID döner
|
|
262
265
|
|
|
263
266
|
except mysql.connector.Error as e:
|
|
264
267
|
print("ID_Control Error:", e)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Qwael/DRİVE.py,sha256=OTiyoXFb5iFP7hXr2QHnH3c0pHZijZr1sFsqguXtMfc,12976
|
|
2
2
|
Qwael/DoIP.py,sha256=5ujPzbZGepFZN0-tMI9Unodvo2gJG3PDL2ShqdBJjdE,418
|
|
3
3
|
Qwael/MultiDB.py,sha256=glptDsH22TyklZrA_ywStnsT6bGnq7JsSR5NN_U1NII,17286
|
|
4
|
-
Qwael/Multidata.py,sha256=
|
|
4
|
+
Qwael/Multidata.py,sha256=xUTqQnAwMc0YZ0hzxCa7pDV5GyCQ2B9a4qXlHWZ4rLU,9080
|
|
5
5
|
Qwael/__init__.py,sha256=8-RUlmpcvWxxqHWc4_sSpHdxAetSy7Oe6YNDfOGpvRw,234
|
|
6
6
|
Qwael/filesz.py,sha256=M93tuP-BQxmySgjtYR5uQ3Otx2AfqbfAuKD6pyZDBC4,3859
|
|
7
|
-
qwael-4.0.0.1.
|
|
8
|
-
qwael-4.0.0.1.
|
|
9
|
-
qwael-4.0.0.1.
|
|
10
|
-
qwael-4.0.0.1.
|
|
11
|
-
qwael-4.0.0.1.
|
|
7
|
+
qwael-4.0.0.1.3.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
qwael-4.0.0.1.3.dist-info/METADATA,sha256=RxDAamq7PqM0PRw30BaEdnR7Vj9JbwiHY5uHnOZQbR4,2280
|
|
9
|
+
qwael-4.0.0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
qwael-4.0.0.1.3.dist-info/top_level.txt,sha256=UtaXY8Mui4lwYNkGrplHcEVe8PjH553OT1Xu5V9bhg0,6
|
|
11
|
+
qwael-4.0.0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|