Skip to content

Commit

Permalink
actually set date_firstupdate correctly....duh
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Dec 8, 2011
1 parent e4450bf commit 0130c2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
9 changes: 5 additions & 4 deletions www/include/lib_flickr_backups.php
Expand Up @@ -148,10 +148,6 @@ function flickr_backups_get_photos(&$user){
if (! $backup['date_firstupdate']){ if (! $backup['date_firstupdate']){


$rsp = flickr_photos_import_for_nsid($flickr_user['nsid']); $rsp = flickr_photos_import_for_nsid($flickr_user['nsid']);

if ($rsp['ok']){
$update['date_firstupdate'] = $update['date_lastupdate'];
}
} }


else { else {
Expand All @@ -168,6 +164,11 @@ function flickr_backups_get_photos(&$user){
if ($rsp['ok']){ if ($rsp['ok']){
$update['date_lastupdate'] = $start_time; $update['date_lastupdate'] = $start_time;
$update['details'] = "count: {$rsp['count_imported']}"; $update['details'] = "count: {$rsp['count_imported']}";

if (! $backup['date_firstupdate']){
$update['date_firstupdate'] = $update['date_lastupdate'];
}

} }


else { else {
Expand Down
15 changes: 0 additions & 15 deletions www/include/lib_flickr_photos_import.php
Expand Up @@ -158,21 +158,6 @@ function flickr_photos_import_photo($photo, $more=array()){


function flickr_photos_import_photo_files(&$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']}"; $root = "http://farm{$photo['farm']}.static.flickr.com/{$photo['server']}/{$photo['id']}";


$small = "{$root}_{$photo['secret']}_z.jpg"; $small = "{$root}_{$photo['secret']}_z.jpg";
Expand Down

0 comments on commit 0130c2a

Please sign in to comment.