pyeasyphd 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyeasyphd might be problematic. Click here for more details.

@@ -299,12 +299,15 @@ class PaperLinksGenerator(object):
299
299
 
300
300
  for publisher in keyword_publisher_abbr[keyword]:
301
301
  for abbr in keyword_publisher_abbr[keyword][publisher]:
302
- lines = [
303
- f"[Link]({os.path.join(folder_name, cj.title(), ff, publisher.lower(), abbr, f'{abbr}.html')})"
304
- for ff in folder_flags
305
- ]
306
-
307
- if any(self._check_file_exists(ff, folder_name, cj, publisher, abbr) for ff in folder_flags):
302
+ lines = []
303
+ for ff in folder_flags:
304
+ ll = os.path.join(folder_name, cj.title(), ff, publisher.lower(), abbr, f'{abbr}.html')
305
+ if os.path.exists(os.path.join(self.data_base_path, ll)):
306
+ lines.append(f"[Link]({ll})")
307
+ else:
308
+ lines.append("")
309
+
310
+ if any(lines):
308
311
  data_list.append(f"|{publisher}|{abbr}|" + "|".join(lines) + "|\n")
309
312
 
310
313
  if len(data_list) == 3:
@@ -339,13 +342,6 @@ class PaperLinksGenerator(object):
339
342
  # default
340
343
  return sorted(keywords)
341
344
 
342
- def _check_file_exists(self, folder, folder_name, cj, publisher, abbr):
343
- """Check if HTML file exists for given parameters."""
344
- file_path = os.path.join(
345
- self.data_base_path, folder_name, cj.title(), folder, publisher.lower(), abbr, f"{abbr}.html"
346
- )
347
- return os.path.exists(file_path)
348
-
349
345
  def _convert_md_to_html_keyword(self, folder_name, cj, keyword):
350
346
  """Convert markdown file to HTML using pandoc."""
351
347
  base_path = os.path.join(self.data_base_path, folder_name, f"{cj.title()}_Keywords")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyeasyphd
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  Keywords: Python,Markdown,LaTex
@@ -29,7 +29,7 @@ pyeasyphd/tools/__init__.py,sha256=u1MZu_JjVac3HhEmcSTwroS83UVu0W5Vspy3Wu_-GH8,4
29
29
  pyeasyphd/tools/generate/generate_from_bibs.py,sha256=Dp1MyADwIRb9qFTFOkMPJLaeeh7NBjuiSLBN7smP2eo,7640
30
30
  pyeasyphd/tools/generate/generate_html.py,sha256=JzUEqgTVCaFzd4hXTYUEf0cVSO1QRe0nVUS72W6oyyU,5349
31
31
  pyeasyphd/tools/generate/generate_library.py,sha256=cU043qWCG4CSITuJpyYECdSzWcNCJ5nlRoq1k-0f4p8,7918
32
- pyeasyphd/tools/generate/generate_links.py,sha256=FwXUQALFDw3MmeLZ8Gdzjj5OcZMATAsaGwvZLIfOU1E,15364
32
+ pyeasyphd/tools/generate/generate_links.py,sha256=TRsQMsC5XU-eG0HDgl_o_na6o1Y-6fj9VFcV5a8Yn7k,15138
33
33
  pyeasyphd/tools/py_run_bib_md_tex.py,sha256=fqwWAEbS3GcBxCcsJGh0Kf-pk18B7LirzbvdmfmGGls,14845
34
34
  pyeasyphd/tools/search/data.py,sha256=ykFEd8Tc04dupiG9Y8viOcEe5g56LCaMH-0KwbV4vt4,10306
35
35
  pyeasyphd/tools/search/search_base.py,sha256=JR80m72UBJu__CWV1KP7ixPhK1uDyApPhDaExrlzfKM,5950
@@ -38,6 +38,6 @@ pyeasyphd/tools/search/search_keywords.py,sha256=YCurXuoYeU1ftve0cb8Hcn_g2FXCXf7
38
38
  pyeasyphd/tools/search/search_writers.py,sha256=Dz6D8m17R7x8NT7_PCjwmzlq29AfUz-N6sjyCguDTo4,15702
39
39
  pyeasyphd/tools/search/utils.py,sha256=bo7xtIZu31dQvjol1lwyWq1t6ldbw28oondwK8VbAqk,7562
40
40
  pyeasyphd/utils/utils.py,sha256=kWxzzgNwz77K9Q7j-RKTaoPpxqiVLVtaBMMhLuEenwE,3128
41
- pyeasyphd-0.2.1.dist-info/METADATA,sha256=CPo6gaFrSmRfiL3tqF5E0thBn81cIg-mJoQbn9yjlDE,984
42
- pyeasyphd-0.2.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
43
- pyeasyphd-0.2.1.dist-info/RECORD,,
41
+ pyeasyphd-0.2.2.dist-info/METADATA,sha256=WQXUSb2VVOHPOkWP6KXm7AsKB6CY4IWV0PcYnVXl9R0,984
42
+ pyeasyphd-0.2.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
43
+ pyeasyphd-0.2.2.dist-info/RECORD,,