Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Surya Narayana
/
ai-workforce-rasa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1b6fb137
authored
Jan 07, 2021
by
Rajeev Uppala
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
datatype condition added
parent
c0dfdbfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
actions/actions.py
actions/actions.py
View file @
1b6fb137
...
...
@@ -34,7 +34,7 @@ def validate_available_date(date_text):
new_date_text
=
datetime
.
fromtimestamp
(
timestamp
)
print
(
"new_date_text"
,
new_date_text
)
HolidaysList
=
[
"2021-01-01"
,
"2021-05-31"
,
"2021-07-05"
,
"2021-09-06"
,
"2021-11-25"
,
"2021-11-26"
,
"2021-12-24"
,
"2021-12-27"
]
dayNumber
=
new_date_text
.
strftime
(
'
%
w'
)
#To check weekend or weekday
dayNumber
=
int
(
new_date_text
.
strftime
(
'
%
w'
)
)
#To check weekend or weekday
print
(
"daynumber"
,
dayNumber
)
dateCheck
=
new_date_text
.
strftime
(
'
%
Y-
%
m-
%
d'
)
#To check for public holidays
print
(
"dateCheck"
,
dateCheck
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment