Skip to content

Commit

Permalink
hotfix: add missing Nonecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
hongee committed Oct 6, 2018
1 parent eb8e736 commit c6a7478
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kerckhoff/assets/js/components/Manage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="container mt-2">
<div class="container-fluid mt-2">
<div class="row mb-2">
<div class="col col-sm-12">
<h1 class="mt-2">Sites Manager</h1>
Expand Down
4 changes: 2 additions & 2 deletions kerckhoff/assets/js/components/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<b-navbar toggleable type="light" variant="light">
<div class="container">
<div class="container-fluid">
<!-- <b-nav-toggle target="nav_collapse"></b-nav-toggle> -->

<b-link class="navbar-brand" href="/">
<div class="d-flex align-items-center branding">
<img class="logo pr-1 mr-2" src="/static/img/db_logo.svg" />
<span class="title font-weight-bold">
FEATURES
KERCKHOFF
</span>
</div>
</b-link>
Expand Down
2 changes: 1 addition & 1 deletion kerckhoff/packages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def transfer_to_s3(session, package):
for idx, image in enumerate(package.images["gdrive"]):
# When the image was last modified on google drive
last_modified_date = arrow.get(image['modifiedDate']).datetime
if package.last_fetched_date > last_modified_date:
if package.last_fetched_date is not None and package.last_fetched_date > last_modified_date:
logger.info(f"{ image['title'] } has not been modified since last fetch.")
continue
else:
Expand Down

0 comments on commit c6a7478

Please sign in to comment.