analyser_hj3415 2.7.1__tar.gz → 2.7.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/PKG-INFO +1 -1
  2. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/cli.py +4 -1
  3. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/eval.py +3 -3
  4. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/pyproject.toml +1 -1
  5. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.DS_Store +0 -0
  6. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.gitattributes +0 -0
  7. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.gitignore +0 -0
  8. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.idea/.gitignore +0 -0
  9. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.idea/analyser-hj3415.iml +0 -0
  10. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  11. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.idea/misc.xml +0 -0
  12. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.idea/modules.xml +0 -0
  13. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/.idea/vcs.xml +0 -0
  14. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/LICENSE +0 -0
  15. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/README.md +0 -0
  16. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/.DS_Store +0 -0
  17. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/__init__.py +0 -0
  18. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/workroom/__init__.py +0 -0
  19. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/workroom/lstm.py +0 -0
  20. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/workroom/myprophet.py +0 -0
  21. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/workroom/mysklearn.py +0 -0
  22. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/workroom/mysklearn2.py +0 -0
  23. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/workroom/score.py +0 -0
  24. {analyser_hj3415-2.7.1 → analyser_hj3415-2.7.3}/analyser_hj3415/workroom/trash.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: analyser_hj3415
3
- Version: 2.7.1
3
+ Version: 2.7.3
4
4
  Summary: Stock analyser and database processing programs
5
5
  Author-email: Hyungjin Kim <hj3415@gmail.com>
6
6
  Description-Content-Type: text/markdown
@@ -140,7 +140,10 @@ def analyser_manager():
140
140
  noti.telegram_to('manager', f"오늘의 Red({args.code})를 레디스캐시에 저장했습니다.(유효 12시간)")
141
141
 
142
142
  elif args.command == 'ranking':
143
- result = eval.Red.ranking(expect_earn=args.expect_earn, refresh=args.refresh)
143
+ if args.refresh:
144
+ result = eval.Red.ranking(expect_earn=args.expect_earn, refresh=True)
145
+ else:
146
+ result = eval.Red.ranking(expect_earn=args.expect_earn, refresh=False)
144
147
  print(result)
145
148
  if args.noti:
146
149
  noti.telegram_to('manager', "오늘의 red ranking을 레디스캐시에 저장했습니다.(유효 12시간)")
@@ -8,7 +8,7 @@ from analyser_hj3415.cli import AnalyserSettingsManager
8
8
  from collections import OrderedDict
9
9
  import logging
10
10
 
11
- analyser_logger = helpers.setup_logger('analyser_logger', logging.INFO)
11
+ analyser_logger = helpers.setup_logger('analyser_logger', logging.WARNING)
12
12
 
13
13
 
14
14
  class Tools:
@@ -187,7 +187,7 @@ class RedData:
187
187
 
188
188
 
189
189
  class Red:
190
- expect_earn = AnalyserSettingsManager().get_value('EXPECT_EARN')
190
+ expect_earn = float(AnalyserSettingsManager().get_value('EXPECT_EARN'))
191
191
 
192
192
  def __init__(self, code: str):
193
193
  assert utils.is_6digit(code), f'Invalid value : {code}'
@@ -359,7 +359,7 @@ class Red:
359
359
  refresh = True
360
360
 
361
361
  redis_name = 'red_ranking'
362
- analyser_logger.info(f"redisname: '{redis_name}' / refresh : {refresh}")
362
+ print(f"redisname: '{redis_name}' / refresh : {refresh}")
363
363
 
364
364
  def fetch_ranking(expect_earn_in: float, refresh_in: bool) -> dict:
365
365
  data = {}
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "analyser_hj3415"
7
- version = "2.7.1"
7
+ version = "2.7.3"
8
8
  authors = [{name = "Hyungjin Kim", email = "hj3415@gmail.com"}]
9
9
  description = "Stock analyser and database processing programs"
10
10
  readme = "README.md"
File without changes