Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 91c8fbfb

Přidáno uživatelem Jakub Vašta před asi 4 roky(ů)

limnter fast fix

Zobrazit rozdíly:

website/src/IOpenDataManager.php
8 8
    public function getAvailableCollections();
9 9

  
10 10
    public function getAvailableCollectionsByDay($date);
11
    
11

  
12 12
    public function getXthAvailableCollectionByDay($index, $date);
13 13

  
14 14
    public function isCollectionAvailable($name, $date);
website/src/OpenDataManager.php
62 62
            if ($this->isCollectionAvailable($value['name'], $date) && false == array_key_exists($value['name'], $availableInDate)) {
63 63
                if ($currentIndex == $index) {
64 64
                    return $value['name'];
65
                }
66
                else {
67
                    $currentIndex++;
65
                } else {
66
                    ++$currentIndex;
68 67
                }
69 68
            }
70 69
        }
71 70

  
72
        return "";
71
        return '';
73 72
    }
74 73

  
75 74
    public function isCollectionAvailable($name, $date) {
76

  
77 75
        $command = new Command(['listCollections' => 1, 'filter' => ['name' => $name.$date]]);
78 76
        $result = $this->manager->executeCommand('open-data-db', $command)->toArray();
79 77

  

Také k dispozici: Unified diff