@@ -84,12 +84,12 @@ def __init__(self, content):
8484 # Standalone has precedence, then initial, then final, then medial.
8585 # This is somewhat arbitrary and may change if special cases arise.
8686 # WB markers are moved to flags to allow default comparison.
87- if self .content .endswith (TOKEN_WB_MARKER ):
88- self .flags |= BOW
89- self .content = self .content .rstrip (TOKEN_WB_MARKER )
9087 if self .content .startswith (TOKEN_WB_MARKER ):
91- self .flags |= EOW
88+ self .flags |= BOW
9289 self .content = self .content .lstrip (TOKEN_WB_MARKER )
90+ if self .content .endswith (TOKEN_WB_MARKER ):
91+ self .flags |= EOW
92+ self .content = self .content .rstrip (TOKEN_WB_MARKER )
9393
9494 def __lt__ (self , other ):
9595 """
@@ -115,9 +115,9 @@ def __lt__(self, other):
115115 if (
116116 (self .flags > 0 or other .flags > 0 )
117117 and self .content == other .content ):
118- logger .debug (f"{ self .content } flags: { self .flags } " )
119- logger .debug (f"{ other .content } flags: { other .flags } " )
120- logger .debug ("Performing flags comparison." )
118+ # logger.debug(f"{self.content} flags: {self.flags}")
119+ # logger.debug(f"{other.content} flags: {other.flags}")
120+ # logger.debug("Performing flags comparison.")
121121
122122 return self .flags > other .flags
123123
@@ -202,6 +202,8 @@ def populate_table(conn, tname, tdata):
202202
203203 @param tdata(dict): Table data.
204204 """
205+ logger .info (f"Populating table: { tname } " )
206+
205207 res = conn .execute (
206208 """INSERT INTO tbl_language (
207209 name, label, marc_code, description
0 commit comments