[Pharo] Personal fitness tracker web app.
Rename MFTSQLite3Database default database location method.
Changed files
src/MyFitnessTracker/MFTSQLite3Database.class.st
@@ -14,7 +14,7 @@
14
14
{ #category : #'as yet unclassified' }
15
15
MFTSQLite3Database class >> defaultConnection [
16
16
17
Removed:
^ self newFromDefault connection
17
Added:
^ self newOnDefaultLocation connection
18
18
]
19
19
20
20
{ #category : #accessing }
@@ -138,7 +138,7 @@
138
138
]
139
139
140
140
{ #category : #'instance creation' }
141
Removed:
MFTSQLite3Database class >> newFromDefault [
141
Added:
MFTSQLite3Database class >> newOnDefaultLocation [
142
142
143
143
^ self on: defaultLocation
144
144
]
src/MyFitnessTracker/MFTSession.class.st
@@ -43,7 +43,7 @@
43
43
| now |
44
44
now := DateAndTime now asUTC rounded.
45
45
"Reflect the login in the database"
46
Removed:
self db: MFTSQLite3Database newFromDefault.
46
Added:
self db: MFTSQLite3Database newOnDefaultLocation.
47
47
self db connection open.
48
48
self db login: aMFTUser atDateAndTime: now.
49
49
"Reflect the login in the session's user"