-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Кулешова Ирина #24
base: master
Are you sure you want to change the base?
Кулешова Ирина #24
Conversation
🍅 Пройдено тестов 10 из 19 |
🍅 Пройдено тестов 13 из 19 |
🍅 Пройдено тестов 13 из 19 |
🍅 Пройдено тестов 11 из 16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍅
if (lastSuccess === null) { | ||
return ''; | ||
} | ||
var hours = lastSuccess.hh < 10 ? '0' + lastSuccess.hh.toString() : lastSuccess.hh; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно в отдельную функцию
exports.isStar = false; | ||
|
||
var days = { | ||
ПН: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему не массивом?
} | ||
|
||
function convertToTargetTimeZoneDate(timeStamp) { | ||
var day = Math.floor(Math.floor(timeStamp / 60) / 24); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь можно написать код функции оптимальнее
}; | ||
} | ||
|
||
function parseTime(strTime) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь очень многое дублируется из parseDate
|
||
function correlateWithBank(bankInterval) { | ||
bankTimeZone = parseTime(bankInterval.from).timeZone; | ||
var thursdayTimeStamp = getTimeStamp(4, bankTimeZone, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему четверг?
Зачем проверять код задачи, которая даже не проходит тесты, если сегодня дедлайн по 4-й задаче, которая 4-й день висит непроверенной? |
Могу не проверять вообще |
No description provided.