mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
PEP8 fixes for the pgAgent and Tables nodes (and subnodes). Fixes #3148
This commit is contained in:
committed by
Dave Page
parent
bcdb8eb275
commit
6753cd7334
@@ -391,7 +391,6 @@ class JobScheduleView(PGChildNodeView):
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@check_precondition
|
||||
def update(self, gid, sid, jid, jscid):
|
||||
"""
|
||||
|
||||
@@ -464,18 +464,16 @@ define('pgadmin.node.pga_schedule', [
|
||||
this.errorModel.unset('jscstart');
|
||||
}
|
||||
|
||||
val = this.get('jscend');
|
||||
if (_.isUndefined(val) || _.isNull(val) ||
|
||||
String(val).replace(/^\s+|\s+$/g, '') == '') {
|
||||
msg = gettext('Please enter the end time.');
|
||||
this.errorModel.set('jscend', msg);
|
||||
errMsg = errMsg || msg;
|
||||
} else {
|
||||
this.errorModel.unset('jscend');
|
||||
}
|
||||
|
||||
// End time must be greater than Start time
|
||||
if(!errMsg) {
|
||||
val = this.get('jscend');
|
||||
// No further validation required if end date is not provided by
|
||||
// the user
|
||||
if (_.isUndefined(val) || _.isNull(val) ||
|
||||
String(val).replace(/^\s+|\s+$/g, '') == '') {
|
||||
return;
|
||||
}
|
||||
|
||||
var start_time = this.get('jscstart'),
|
||||
end_time = this.get('jscend'),
|
||||
start_time_js = start_time.split(' '),
|
||||
|
||||
Reference in New Issue
Block a user