Skip to content

Commit

Permalink
python3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pefremova committed Jun 10, 2024
1 parent c7686b4 commit 51aaa48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
name: Python package

on:
push:
branches: [ "master", "actions" ]
pull_request:
branches: [ "master" ]
- push
- pull_request

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion ttoolly/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def get_random_datetime_value(
datetime_from=datetime.combine(datetime.today().replace(month=1, day=1), time(0, 0)),
datetime_to=date.today(),
):
return datetime.fromtimestamp(random.randint(mktime(datetime_from.timetuple()), mktime(datetime_to.timetuple())))
return datetime.fromtimestamp(random.randint(int(mktime(datetime_from.timetuple())), int(mktime(datetime_to.timetuple()))))


def get_random_decimal(value_from, value_to, places=10):
Expand Down

0 comments on commit 51aaa48

Please sign in to comment.