Skip to content

Commit

Permalink
feat: update gitattributes and fix versionin docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Josep Batallé committed Aug 23, 2022
1 parent 7bc21e8 commit e186afe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.vue linguist-detectable=false
*.vue linguist-detectable=false
*.css linguist-detectable=false
*.scss linguist-detectable=false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ https://queds-api.herokuapp.com/overview
* Automatic read from exchanges: Bitstamp, Kraken, Bittrex and Binance

## In progress
* Set price alerts
* Include dividends
* Allow to import broker/crypto data from CSV
* Set default portfolio currency
Expand Down
7 changes: 1 addition & 6 deletions api/api/crypto/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get(self):

# wallet_items = ExchangeWallet.query.filter(ExchangeWallet.user_id == user_id).all()
if len(wallet_items) == 0:
return {'message': "Unable to detect tickers in open transactions. Recalculate the wallet!"}, 400
return [], 400

c = CryptoCompareClient()
currencies = [p.currency for p in wallet_items]
Expand Down Expand Up @@ -92,11 +92,6 @@ def get(self):
oo_item['order'] = oo.order.json
item['open_orders'].append(oo_item)


# item['market'] = {}
# if r.ticker.ticker in tickers_by_ticker:
# item['market'] = tickers_by_ticker[r.ticker.ticker]
# item['transaction'] = r.transaction.json
items.append(item)
return jsonify(items)

Expand Down
2 changes: 1 addition & 1 deletion api/api/stock/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get(self):
tickers_yahoo = {t.ticker.ticker_yahoo: t.ticker.ticker for t in wallet_items if t.ticker.ticker_yahoo}
symbols = ",".join(list(tickers_yahoo.keys()))
if len(wallet_items) == 0:
return {'message': "Unable to detect tickers in open transactions. Recalculate wallet"}, 400
return [], 200

if len(symbols) == 0:
log.error("Unable to detect tickers in open transactions")
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
- ./api:/usr/src
- ./config:/usr/src/config
- ./models:/usr/src/models
- ./VERSION:/usr/VERSION
ports:
- 5001:5000
environment:
Expand Down Expand Up @@ -100,7 +101,7 @@ services:
- api_bridge

db:
image: timescale/timescaledb:2.7.1-pg12
image: timescale/timescaledb:2.7.2-pg12
restart: always
environment:
POSTGRES_DB: queds
Expand Down
4 changes: 2 additions & 2 deletions frontend/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Auto detect text files and perform LF normalization
*.scss linguist-language=Vue
*.css linguist-language=Vue
#*.scss linguist-language=Vue
#*.css linguist-language=Vue

# Standard to msysgit
*.doc diff=astextplain
Expand Down

0 comments on commit e186afe

Please sign in to comment.