Skip to content

Commit

Permalink
إضافة ترخيص الاستخدام
Browse files Browse the repository at this point in the history
  • Loading branch information
vzool committed Jul 23, 2024
1 parent 39f849b commit 7dfefad
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Abdelaziz Elrashed Elshaikh Mohamed

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include LICENSE
include README.md
include pyproject.toml
include setup.py
include docs/*.md
include docs/*.pdf
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "zakat"
version = "0.2.79"
version = "0.2.80"
authors = [
{ name="Abdelaziz Elrashed Elshaikh Mohamed", email="aeemh.sdn@gmail.com" },
]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='zakat',
packages=find_packages(include=['zakat']),
version='0.2.79',
version='0.2.80',
description='A Python Library for Islamic Financial Management.',
author='Abdelaziz Elrashed Elshaikh Mohamed',
install_requires=[],
Expand Down
4 changes: 2 additions & 2 deletions zakat/zakat_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def Version() -> str:
Returns:
str: The current version of the software.
"""
return '0.2.79'
return '0.2.80'

@staticmethod
def ZakatCut(x: float) -> float:
Expand Down Expand Up @@ -1885,7 +1885,7 @@ def process(row, index=0):
nonlocal created
(date, value, desc, account, rate, hashed) = row
date += index
if rate > 1:
if rate > 0:
self.exchange(account, created=date, rate=rate)
if value > 0:
self.track(value, desc, account, True, date)
Expand Down

0 comments on commit 7dfefad

Please sign in to comment.