Skip to content

Commit

Permalink
🕊
Browse files Browse the repository at this point in the history
🕊
  • Loading branch information
keyiflerolsun committed Sep 13, 2023
1 parent 3bf3617 commit 31449ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions KeeneticPy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from requests import Session
from hashlib import md5, sha256
from zipfile import ZipFile, ZIP_DEFLATED
from os import remove, listdir, path
from os import remove, listdir
from datetime import datetime
from Kekik import slugify

Expand Down Expand Up @@ -104,7 +104,7 @@ def __zip_tarih_al(self, dosya_adi:str) -> datetime:
tarih_str = dosya_adi.split("_")[-1].replace(".zip", "")
return datetime.strptime(tarih_str, "%d-%m-%Y")

def backup(self, maksimum_yedek=5):
def backup(self, maksimum_yedek=5) -> str:
if not self._yetki:
assert False, "Yetkisiz EriÅŸim."

Expand Down Expand Up @@ -147,4 +147,6 @@ def backup(self, maksimum_yedek=5):
remove(yedek)
konsol.log(f"[yellow][~] {yedek} dosyası silindi!")

konsol.log(f"[green][+] {zip_dosyasi} başarıyla oluşturuldu!")
konsol.log(f"[green][+] {zip_dosyasi} başarıyla oluşturuldu!")

return zip_dosyasi
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
# ? Genel Bilgiler
name = "KeeneticPy",
version = "0.5",
version = "0.6",
url = "https://github.com/keyiflerolsun/KeeneticPy",
description = "Python Lib for Keenetic Routers",
keywords = ["KeeneticPy", "KekikAkademi", "keyiflerolsun"],
Expand Down

0 comments on commit 31449ff

Please sign in to comment.