Skip to content
Browse files

actually set date_firstupdate correctly....duh

  • Loading branch information...
1 parent e4450bf commit 0130c2a3c0f0c41f80ae64c6ea458ed8ef791ad7 straup committed Dec 8, 2011
Showing with 5 additions and 19 deletions.
  1. +5 −4 www/include/lib_flickr_backups.php
  2. +0 −15 www/include/lib_flickr_photos_import.php
View
9 www/include/lib_flickr_backups.php
@@ -148,10 +148,6 @@ function flickr_backups_get_photos(&$user){
if (! $backup['date_firstupdate']){
$rsp = flickr_photos_import_for_nsid($flickr_user['nsid']);
-
- if ($rsp['ok']){
- $update['date_firstupdate'] = $update['date_lastupdate'];
- }
}
else {
@@ -168,6 +164,11 @@ function flickr_backups_get_photos(&$user){
if ($rsp['ok']){
$update['date_lastupdate'] = $start_time;
$update['details'] = "count: {$rsp['count_imported']}";
+
+ if (! $backup['date_firstupdate']){
+ $update['date_firstupdate'] = $update['date_lastupdate'];
+ }
+
}
else {
View
15 www/include/lib_flickr_photos_import.php
@@ -158,21 +158,6 @@ function flickr_photos_import_photo($photo, $more=array()){
function flickr_photos_import_photo_files(&$photo, $more=array()){
- # FIX ME: OMGWTF...
-/*
-<pre style="text-align: left;">'wrote
-/home/asc/parallel-flickr-static/556/556_8e34a729d6_i.json'</pre>
-<pre style="text-align: left;">'fetching 1 URIs for photo '</pre>
-<pre style="text-align: left;">'failed to fetch
-http://farm1.static.flickr.com/1/556_8e34a729d6_o.: will retry: 1'</pre>
-<pre style="text-align: left;">'fetching 1 URIs for photo '</pre>
-<pre style="text-align: left;">'failed to fetch
-http://farm1.static.flickr.com/1/556_8e34a729d6_o.: will retry: 1'</pre>
-<pre style="text-align: left;">'fetching 1 URIs for photo '</pre>
-<pre style="text-align: left;">'failed to fetch
-http://farm1.static.flickr.com/1/556_8e34a729d6_o.: will retry: 0'</pre>
-*/
-
$root = "http://farm{$photo['farm']}.static.flickr.com/{$photo['server']}/{$photo['id']}";
$small = "{$root}_{$photo['secret']}_z.jpg";

0 comments on commit 0130c2a

Please sign in to comment.
Something went wrong with that request. Please try again.