Jean28518 / linux-assistant

A daily linux helper with powerful integrated search, routines checks and administrative tasks. The Project is built with flutter and python.
https://www.linux-assistant.org
GNU General Public License v3.0
87 stars 12 forks source link

Fix: use a different function to remove the .zip file extension #108

Closed Nati0ns closed 1 year ago

Nati0ns commented 1 year ago

Fixes #107

The replace function replaces all instances for ".zip" in the file name, which can lead to wrong return values:

replace-2

Using os.path.splitext solves this issue:

replace-3

As far as I can tell unzip_file is never used in the application... so not really an urgent bug fix, but a fix none the less :P

Best regards!