Skip to content

Commit

Permalink
Merge pull request #50 from cortex-lab/fixURLsetting
Browse files Browse the repository at this point in the history
v2.0.1 re-order the constructor so that dat.paths URL is used
  • Loading branch information
k1o0 authored Jul 24, 2019
2 parents 1129874 + e369d37 commit ed07182
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
11 changes: 7 additions & 4 deletions @Alyx/Alyx.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,19 @@
methods
function obj = Alyx(user, token)
%ALYX Class constructor

% Set the directory and URL paths
p = dat.paths;
obj.BaseURL = getOr(p, 'databaseURL', obj.BaseURL);
obj.QueueDir = getOr(p, 'localAlyxQueue', obj.QueueDir);

if nargin
obj.User = user;
obj.Token = token;
else
obj = obj.login;
end
% Set the directory and URL paths
p = dat.paths;
obj.BaseURL = getOr(p, 'databaseURL', obj.BaseURL);
obj.QueueDir = getOr(p, 'localAlyxQueue', obj.QueueDir);

end

function obj = logout(obj)
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

## [Latest](https://github.com/cortex-lab/matlab-ci/commits/master) [2.0.1]

### Added

### Modified

- Patch fix for class constructor default url used instead of paths

0 comments on commit ed07182

Please sign in to comment.