From e947dfe883d62a439ece399b55e990c9be6eae30 Mon Sep 17 00:00:00 2001
From: Albert
Date: Thu, 17 Aug 2023 23:30:26 +0200
Subject: [PATCH 1/2] dependencies updated - bugs fixed
---
CLI/geogramint_cli.py | 14 ++++++++++++++
README.md | 6 +++---
geogramint.py | 4 ++--
mapfiles/map.kv | 6 +++---
requirements.txt | 20 ++++++++++----------
utils/ressources.py | 5 +++--
6 files changed, 35 insertions(+), 20 deletions(-)
diff --git a/CLI/geogramint_cli.py b/CLI/geogramint_cli.py
index 2c7886a..2bd0fed 100644
--- a/CLI/geogramint_cli.py
+++ b/CLI/geogramint_cli.py
@@ -1,3 +1,4 @@
+__version__ = "v1.3"
import codecs
import json
import os
@@ -39,6 +40,19 @@
console = Console()
+def version_callback(value: bool):
+ if value:
+ typer.echo(f"{__version__}")
+ raise typer.Exit()
+
+@CLI.callback()
+def version(
+ version: bool = typer.Option(
+ False, "--version", help="Show the version", callback=version_callback
+ )
+):
+ pass
+
@CLI.command(rich_help_panel='Config Commands')
def set_hash(hash: str):
api_id, api_hash, phone_number, extended_report = settings_cli.loadConfig()
diff --git a/README.md b/README.md
index eb36d8f..ff90f10 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
-
+
## **About**
@@ -20,7 +20,7 @@ The tool is fully supported on Windows and partially supported on Mac OS and Lin
**Requirements:** [Python 3.8 or 3.9](https://www.python.org/downloads/release/python-3913/)
-### On Windows [![Windows](https://svgshare.com/i/ZhY.svg)](https://svgshare.com/i/ZhY.svg)
+### On Windows [![Windows](https://img.shields.io/badge/Windows-03b1fc?style=for-the-badge&logo=windows)](https://svgshare.com/i/ZhY.svg)
+ #### With the installer: Click [here!](https://github.com/Alb-310/Geogramint/releases)
+ #### With Github:
@@ -42,7 +42,7 @@ python geogramint.py # for GUI mode
python geogramint.py --help # for CLI mode
```
-### On Mac OS [![macOS](https://svgshare.com/i/ZjP.svg)](https://svgshare.com/i/ZjP.svg) and Linux [![Linux](https://svgshare.com/i/Zhy.svg)](https://svgshare.com/i/Zhy.svg)
+### On Mac OS ![macOS](https://img.shields.io/badge/Mac_OS-abbfc7?style=for-the-badge&logo=apple) and Linux ![Linux](https://img.shields.io/badge/Linux-ffffff?style=for-the-badge&logo=linux)
+ #### With Github:
```bash
diff --git a/geogramint.py b/geogramint.py
index 888357f..86e7aa6 100644
--- a/geogramint.py
+++ b/geogramint.py
@@ -1,4 +1,4 @@
-# v1.2
+# v1.3
import os
import sys
import codecs
@@ -21,7 +21,7 @@
from kivy.config import Config
from kivymd.app import MDApp
from kivy.core.window import Window
- from kivy.logger import Logger
+ from kivy.logger import Logger, LOG_LEVELS
from api.TelegramAPIRequests import geolocate_AllEntities_Nearby
from mapfiles.markercenter import MarkerHelper
from utils import settings
diff --git a/mapfiles/map.kv b/mapfiles/map.kv
index 677f612..02b8535 100644
--- a/mapfiles/map.kv
+++ b/mapfiles/map.kv
@@ -4,9 +4,9 @@
#:include mapfiles/markercenter.kv